CN105812346B - A kind of data interactive method of serial equipment and ethernet device - Google Patents
A kind of data interactive method of serial equipment and ethernet device Download PDFInfo
- Publication number
- CN105812346B CN105812346B CN201510937745.5A CN201510937745A CN105812346B CN 105812346 B CN105812346 B CN 105812346B CN 201510937745 A CN201510937745 A CN 201510937745A CN 105812346 B CN105812346 B CN 105812346B
- Authority
- CN
- China
- Prior art keywords
- data
- ethernet
- buffer area
- serial ports
- serial
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
The invention discloses the data interactive methods of a kind of serial equipment and ethernet device, this method is operated in into each type operating system, in single-chip microcontroller, according to different system platforms, operating platform, the present invention can be allowed to be in communication with each other, such as the ethernet communication in the serial ports and Windows in linux system, the ethernet communication in serial ports and Linux in single-chip microcontroller.Using the present invention by serial data and Ethernet data (being based on standard Modbus agreement) identification, circulation mutually, the lower across a network data transmission of low cost is realized.
Description
Technical field
The present invention relates to data interaction fields, more particularly to the data interaction side of a kind of serial equipment and ethernet device
Method.
Background technique
Modbus generallys use two kinds of forms of Ethernet and serial ports at present.For most of base's equipment, adopt
It is serial communication, and for the equipment of most of tape operation systems, using ethernet communication.For needing to count
For two interactive equipment, unified a communication interface and communication protocol are needed.
Under the prior art, if the communication interface of two equipment is inconsistent, one is Ethernet interface, and one is serial ports,
So two device datas cannot circulate, and can not carry out data interaction.
Summary of the invention
In view of the above-mentioned deficiencies in the prior art, it is an object of the present invention to provide the data of a kind of serial equipment and ethernet device
Exchange method realizes serial data and Ethernet data (being based on standard Modbus agreement) identification, circulation mutually under low cost
The transmission of across a network data.
The object of the present invention is achieved like this: a kind of data interactive method of serial equipment and ethernet device will go here and there
When mouth end is as server-side, include the following steps:
1) ethernet communication is created, obtains the data that Ethernet receives, and the data that Ethernet is received are stored in
Ethernet receives in buffer area;
2) judge that Ethernet receives in buffer area whether there are data, it, will be with if Ethernet, which receives in buffer area, data
Too net receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into serial ports and are sent in buffer area,
Continue step 3);If Ethernet, which receives in buffer area, does not have data, return step 1);
3) judge that serial ports sends in buffer area whether there are data, if serial ports, which is sent in buffer area, there are data, serial ports is sent out
It send the data in buffer area to be sent to the equipment connecting with serial ports, continues step 4);If serial ports, which is sent in buffer area, does not have data,
Then return step 1);
4) serial communication is created, obtains the data that serial ports receives, and the data that serial ports is received are stored in serial ports and connect
It receives in buffer area;
5) judge that serial ports receives in buffer area whether there are data, if serial ports, which receives in buffer area, there are data, serial ports is connect
It receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into Ethernet and are sent in buffer area, continue
Step 6);If serial ports, which receives in buffer area, does not have data, return step 4);
6) judge that Ethernet sends in buffer area whether there are data, it, will be with if Ethernet, which is sent in buffer area, data
The data that too net is sent in buffer area are sent to the equipment connecting with Ethernet interface, return step 1);If Ethernet sends buffering
There is no data in area, then return step 4).
When program needs to exit, stop protocol conversion, stop Ethernet, serial ports sending and receiving data, close Ethernet interface, closes
Close serial ports.
Using serial ports end as when server-side, the data that Ethernet is received are stored in Ethernet and receive in buffer area, obtain
Take new sequence of data frames number.Sequence of data frames number is the ID number for receiving Ethernet data, within the same period, each data
The ID of frame is unique.After receiving the data of Ethernet, Ethernet data Content Transformation is assisted at Modbus TCP/IP
View, the first two byte in Modbus ICP/IP protocol, i.e. transaction identifier, it is also desirable to save.It is received according to Ethernet
The new serial data frame of data creation, when creating new serial data frame, data portion needs to remove the affairs of data front
First identifier, protocol type, data length.The serial data frame is saved in serial ports transmission buffer.According to Ethernet
After the new serial data frame of the data creation received, while being stored in serial ports transmission buffer area, by the sequence of data frame
It number is transmitted in Serial Port Information.After serial ports receives data, corresponding Ethernet information is searched according to sequence number.Serial ports is connect
The data received are stored in serial ports and receive in buffer area.Ethernet information all in Serial Port Information is traversed, is found out corresponding
Current data number of frames.The new ethernet data frame of the data creation received according to serial ports, creates new Ethernet data
When frame, data portion needs to remove CRC check, increases transaction identifier, protocol type, data length in data front.It will
The ethernet data frame is saved in Ethernet and sends in buffer area.Multiple serial equipments and one can be allowed using this method
A or multiple ethernet devices are communicated.
A kind of data interactive method of serial equipment and ethernet device, using serial ports end as when client, including it is as follows
Step:
1) serial communication is created, obtains the data that serial ports receives, and the data that serial ports receives are stored in serial ports reception
In buffer area;
2) judge that serial ports receives in buffer area whether there are data, if serial ports, which receives in buffer area, there are data, serial ports is connect
It receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into Ethernet and are sent in buffer area, continue
Step 3);If serial ports, which receives in buffer area, does not have data, return step 1);
3) judge that Ethernet sends in buffer area whether there are data, it, will be with if Ethernet, which is sent in buffer area, data
The data that too net sends in buffer area are sent to the equipment connecting with Ethernet interface, continue step 4);If Ethernet sends buffering
There is no data in area, then return step 1);
4) create ethernet communication, obtain the data that receive of Ethernet, and the data that receive of Ethernet be stored in
Too net receives in buffer area;
5) judge that Ethernet receives in buffer area whether there are data, it, will be with if Ethernet, which receives in buffer area, data
Too net receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into serial ports and are sent in buffer area,
Continue step 6);If Ethernet, which receives in buffer area, does not have data, return step 4);
6) judge that serial ports sends in buffer area whether there are data, if serial ports, which is sent in buffer area, there are data, serial ports is sent out
The data in buffer area are sent to be sent to the equipment connecting with serial ports, return step 1);If serial ports, which is sent in buffer area, does not have data,
Then return step 4).When program needs to exit, stop protocol conversion, stop Ethernet, serial ports sending and receiving data, closes Ethernet
Mouthful, close serial ports.
Using serial ports end as when client, the data that serial ports is received are stored in serial ports and receive in buffer area, obtain new
Sequence of data frames number, sequence of data frames number is the ID number for receiving serial data, within the same period, the ID of each data frame
It is unique.The new ethernet data frame of the data creation received according to serial ports, when creating new ethernet data frame, data
Part needs to remove CRC check, increases transaction identifier, protocol type, data length in data front.By the ether netting index
It is saved in Ethernet transmission buffer according to frame.After the new ethernet data frame of the data creation received according to serial ports,
While being stored in Ethernet transmission buffer area, the sequence number of data frame is transmitted in Ethernet information.Ethernet interface receives
To after data, corresponding Serial Port Information is searched according to sequence number.The data that Ethernet is received are stored in Ethernet reception
In buffer area, Serial Port Information all in Ethernet information is traversed, corresponding current data number of frames is found out, according to ether
The new serial data frame of the data creation that net receives, when creating new serial data frame, before data portion needs to remove data
Transaction identifier, protocol type, the data length in portion.The serial data frame is saved in serial ports transmission buffer.Using
This method can allow multiple serial equipments to be communicated with one or more ethernet devices.
The data that Ethernet is received parse, and extract element identifier (element ID), the function code, data at data portion rear portion
(i.e. removing Ethernet protocol content, extract relative to the data portion in Ethernet protocol), is converted into serial port protocol data, will
Data portion front that serial ports receives addition transaction identifier, protocol type, (addition is MODBUS to data length
Header information of the TCP/IP relative to MODBUS), and the CRC check of data portion is removed, Ethernet protocol data are converted into, are joined
See Fig. 5.
The invention has the benefit that method provided by the present invention is portable high, it is applied widely, and transfer efficiency
Height, conversion speed are fast.This method may be implemented in each type operating system, single-chip microcontroller, by the upper fortune such as existing industrial personal computer
The data interaction of serial equipment and ethernet device can be realized in the program in machine code of row design, by serial data and Ethernet data
The lower across a network data transmission of low cost is realized in (being based on standard Modbus agreement) identification, circulation mutually.And use side of the invention
Method can be with Overpassing Platform by Using, and process realization is uncomplicated, and cost is very low, if method is run in PC machine, only needs to increase by one
A RS485 Serial Communication Card (not needing if PC is included), practicability is high.According to different system platforms, operating platform, originally
Invention can be allowed to be in communication with each other.Such as the ethernet communication in the serial ports and Windows in linux system, such as monolithic
The ethernet communication in serial ports and Linux in machine.
Present invention will be further explained below with reference to the attached drawings and specific embodiments.
Detailed description of the invention
The operational flow diagram that Fig. 1 is serial ports end of the invention when being server-side;
The operational flow diagram that Fig. 2 is serial ports end of the invention when being client;
Fig. 3 is that serial ports end data of the present invention handles operational process
Fig. 4 is ethernet side data processing operational process of the present invention
Fig. 5 is the communication format of Modbus Tcp/Ip and the comparison diagram of serial data format.
Specific embodiment
Embodiment one
Referring to Fig. 1, Fig. 3 and Fig. 4, a kind of data interactive method of serial equipment and ethernet device, using serial ports end as
When server-side, include the following steps:
1) ethernet communication is created, obtains the data that Ethernet receives, and the data that Ethernet is received are stored in
Ethernet receives in buffer area;
2) judge that Ethernet receives in buffer area whether there are data, if Ethernet, which receives in buffer area, there are data, extract
The data that Ethernet receives in buffer area are saved, and Ethernet is then received the data in buffer area and carries out protocol conversion,
And the data after protocol conversion are put into serial ports and are sent in buffer area, continue step 3);If Ethernet receives not to be had in buffer area
Data, then return step 1);
3) judge that serial ports sends in buffer area whether there are data, if serial ports, which is sent in buffer area, there are data, serial ports is sent out
It send the data in buffer area to be sent to the equipment connecting with serial ports, continues step 4);If serial ports, which is sent in buffer area, does not have data,
Then return step 1);
4) serial communication is created, obtains the data that serial ports receives, and the data that serial ports is received are stored in serial ports and connect
It receives in buffer area;
5) judge that serial ports receives in buffer area whether there are data, if serial ports, which receives in buffer area, there are data, extract serial ports
The data received in buffer area are saved, and serial ports is then received the data in buffer area and carries out protocol conversion, and by agreement
Data after conversion are put into Ethernet and send in buffer area, continue step 6);If serial ports, which receives in buffer area, does not have data, return
Return step 4);
6) judge that Ethernet sends in buffer area whether there are data, it, will be with if Ethernet, which is sent in buffer area, data
The data that too net is sent in buffer area are sent to the equipment connecting with Ethernet interface, return step 1);If Ethernet sends buffering
There is no data in area, then return step 4).
When program needs to exit, stop protocol conversion, stop Ethernet, serial ports sending and receiving data, close Ethernet interface, closes
Close serial ports.
Using serial ports end as when server-side, the data that Ethernet is received are stored in Ethernet and receive in buffer area, obtain
Take new sequence of data frames number.Sequence of data frames number is the ID number for receiving Ethernet data, within the same period, each data
The ID of frame is unique.After receiving the data of Ethernet, Ethernet data Content Transformation is assisted at Modbus TCP/IP
View, the first two byte in Modbus ICP/IP protocol, i.e. transaction identifier, it is also desirable to save.It is received according to Ethernet
The new serial data frame of data creation, when creating new serial data frame, data portion needs to remove the affairs of data front
First identifier, protocol type, data length.The serial data frame is saved in serial ports transmission buffer.According to Ethernet
After the new serial data frame of the data creation received, while being stored in serial ports transmission buffer area, by the sequence of data frame
It number is transmitted in Serial Port Information.After serial ports receives data, corresponding Ethernet information is searched according to sequence number.Serial ports is connect
The data received are stored in serial ports and receive in buffer area.Ethernet information all in Serial Port Information is traversed, is found out corresponding
Current data number of frames.The new ethernet data frame of the data creation received according to serial ports, creates new Ethernet data
When frame, data portion needs to remove CRC check, increases transaction identifier, protocol type, data length in data front.It will
The ethernet data frame is saved in Ethernet and sends in buffer area.Multiple serial equipments and one can be allowed using this method
A or multiple ethernet devices are communicated.
Embodiment two
A kind of data interactive method of serial equipment and ethernet device, using serial ports end as when client, including it is as follows
Step:
1) serial communication is created, obtains the data that serial ports receives, and the data that serial ports receives are stored in serial ports reception
In buffer area;
2) judge that serial ports receives in buffer area whether there are data, if serial ports, which receives in buffer area, there are data, serial ports is connect
It receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into Ethernet and are sent in buffer area, continue
Step 3);If serial ports, which receives in buffer area, does not have data, return step 1);
3) judge that Ethernet sends in buffer area whether there are data, it, will be with if Ethernet, which is sent in buffer area, data
The data that too net sends in buffer area are sent to the equipment connecting with Ethernet interface, continue step 4);If Ethernet sends buffering
There is no data in area, then return step 1);
4) create ethernet communication, obtain the data that receive of Ethernet, and the data that receive of Ethernet be stored in
Too net receives in buffer area;
5) judge that Ethernet receives in buffer area whether there are data, it, will be with if Ethernet, which receives in buffer area, data
Too net receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into serial ports and are sent in buffer area,
Continue step 6);If Ethernet, which receives in buffer area, does not have data, return step 4);
6) judge that serial ports sends in buffer area whether there are data, if serial ports, which is sent in buffer area, there are data, serial ports is sent out
The data in buffer area are sent to be sent to the equipment connecting with serial ports, return step 1);If serial ports, which is sent in buffer area, does not have data,
Then return step 4).When program needs to exit, stop protocol conversion, stop Ethernet, serial ports sending and receiving data, closes Ethernet
Mouthful, close serial ports.
Using serial ports end as when client, the data that serial ports is received are stored in serial ports and receive in buffer area, obtain new
Sequence of data frames number, sequence of data frames number is the ID number for receiving serial data, within the same period, the ID of each data frame
It is unique.The new ethernet data frame of the data creation received according to serial ports, when creating new ethernet data frame, data
Part needs to remove CRC check, increases transaction identifier, protocol type, data length in data front.By the ether netting index
It is saved in Ethernet transmission buffer according to frame.After the new ethernet data frame of the data creation received according to serial ports,
While being stored in Ethernet transmission buffer area, the sequence number of data frame is transmitted in Ethernet information.Ethernet interface receives
To after data, corresponding Serial Port Information is searched according to sequence number.The data that Ethernet is received are stored in Ethernet reception
In buffer area, Serial Port Information all in Ethernet information is traversed, corresponding current data number of frames is found out, according to ether
The new serial data frame of the data creation that net receives, when creating new serial data frame, before data portion needs to remove data
Transaction identifier, protocol type, the data length in portion.The serial data frame is saved in serial ports transmission buffer.Using
This method can allow multiple serial equipments to be communicated with one or more ethernet devices.
Referring to Fig. 5, the data that Ethernet is received are parsed, and extract element identifier (element ID), the function at data portion rear portion
Energy code, data (i.e. removing Ethernet protocol content, extract relative to the data portion in Ethernet protocol), are converted into serial ports association
Data are discussed, (addition is by data portion front that serial ports receives addition transaction identifier, protocol type, data length
Header information of the MODBUS TCP/IP relative to MODBUS), and the CRC check of data portion is removed, it is converted into Ethernet protocol
Data, referring to Fig. 5.
The communication format of Modbus Tcp/Ip is as shown in table 1
Table 1
Serial data format is as shown in table 2
Table 2
Serial Port Information storage content is as shown in table 3, and it is as shown in table 4 that Ethernet information stores content.Serial Port Information, Ethernet
Information is configuration information, and required parameter saves when operation.
Each Ethernet, serial ports have an information
Table 3
Table 4
The present invention is not limited solely to above-described embodiment, without departing substantially from technical solution of the present invention spirit into
The technical solution of row few modifications should fall into protection scope of the present invention.
Claims (6)
1. the data interactive method of a kind of serial equipment and ethernet device, which is characterized in that using serial ports end as when server-side,
Include the following steps:
1) ethernet communication is created, obtains the data that Ethernet receives, and the data that Ethernet is received are stored in ether
Net receives in buffer area;
2) judge that Ethernet receives in buffer area whether there are data, if Ethernet, which receives in buffer area, there are data, by Ethernet
It receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into serial ports and are sent in buffer area, continue
Step 3);If Ethernet, which receives in buffer area, does not have data, return step 1);
3) serial communication is created, judges that serial ports sends in buffer area whether there are data, if serial ports, which is sent in buffer area, data,
Serial ports is sent into the data in buffer area and is sent to the equipment connecting with serial ports, continues step 4);If serial ports is sent in buffer area
There is no data, then return step 1);
4) data that serial ports receives are obtained, and the data that serial ports is received are stored in serial ports and receive in buffer area;
5) judge that serial ports receives in buffer area whether there are data, if serial ports, which receives in buffer area, there are data, serial ports is received slow
The data rushed in area carry out protocol conversion, and the data after protocol conversion are put into Ethernet and are sent in buffer area, continue step
6);If serial ports, which receives in buffer area, does not have data, return step 4);
6) judge that Ethernet sends in buffer area whether there are data, if Ethernet, which is sent in buffer area, there are data, by Ethernet
The data sent in buffer area are sent to the equipment connecting with Ethernet interface, return step 1);If Ethernet is sent in buffer area
There is no data, then return step 4);
Using serial ports end as when server-side, the data that Ethernet is received are stored in Ethernet and receive in buffer area, obtain new
Sequence of data frames number, sequence of data frames number is the ID number for receiving Ethernet data, within the same period, each data frame
ID be it is unique, after receiving the data of Ethernet, by Ethernet data Content Transformation at Modbus ICP/IP protocol,
The first two byte in Modbus ICP/IP protocol, i.e. transaction identifier, it is also desirable to save, the number received according to Ethernet
According to new serial data frame is created, when creating new serial data frame, data portion needs to remove the transaction mark of data front
Know symbol, protocol type, data length, which is saved in serial ports transmission buffer, is received according to Ethernet
After the new serial data frame of the data creation arrived, while being stored in serial ports transmission buffer area, the sequence number of data frame is passed
It is delivered in Serial Port Information, after serial ports receives data, corresponding Ethernet information is searched according to sequence number, serial ports is received
Data be stored in serial ports and receive in buffer area, traverse all Ethernet information in Serial Port Information, find out corresponding current
Sequence of data frames number, the new ethernet data frame of the data creation received according to serial ports, when creating new ethernet data frame,
Data portion needs to remove CRC check, increases transaction identifier, protocol type, data length in data front, by the ether
Net data frame is saved in Ethernet and sends in buffer area.
2. data interactive method according to claim 1, it is characterised in that: the data for receiving Ethernet solve
Analysis extracts element identifier (element ID), the function code, data at data portion rear portion, is converted into serial port protocol data, serial ports is received
Transaction identifier, protocol type, data length are added in data portion front, and remove the CRC check of data portion, are converted into
Ethernet protocol data.
3. data interactive method according to claim 1, it is characterised in that: the data for receiving Ethernet are stored in
Ethernet receives in buffer area, obtains new sequence of data frames number, creates new serial data frame, which is saved
It is sent in buffer area to serial ports;The data that serial ports is received are stored in serial ports and receive in buffer area, traverse institute in Serial Port Information
Some Ethernet information finds out corresponding current data number of frames, creates new ethernet data frame, by the Ethernet
Data frame is saved in Ethernet and sends in buffer area.
4. the data interactive method of a kind of serial equipment and ethernet device, which is characterized in that using serial ports end as when client,
Include the following steps:
1) serial communication is created, obtains the data that serial ports receives, and the data that serial ports receives are stored in serial ports reception buffering
Qu Zhong;
2) judge that serial ports receives in buffer area whether there are data, if serial ports, which receives in buffer area, there are data, serial ports is received slow
The data rushed in area carry out protocol conversion, and the data after protocol conversion are put into Ethernet and are sent in buffer area, continue step
3);If serial ports, which receives in buffer area, does not have data, return step 1);
3) ethernet communication is created, judges that Ethernet sends in buffer area whether there are data, if Ethernet, which is sent in buffer area, to be had
Ethernet is then sent the data in buffer area and is sent to the equipment connecting with Ethernet interface, continues step 4) by data;If ether
Net, which is sent in buffer area, does not have data, then return step 1);
4) data that Ethernet receives are obtained, and the data that Ethernet receives are stored in Ethernet reception buffer area;
5) judge that Ethernet receives in buffer area whether there are data, if Ethernet, which receives in buffer area, there are data, by Ethernet
It receives the data in buffer area and carries out protocol conversion, and the data after protocol conversion are put into serial ports and are sent in buffer area, continue
Step 6);If Ethernet, which receives in buffer area, does not have data, return step 4);
6) judge that serial ports sends in buffer area whether there are data, if serial ports, which is sent in buffer area, there are data, serial ports is sent slow
The data rushed in area are sent to the equipment connecting with serial ports, return step 1);If serial ports, which is sent in buffer area, does not have data, return
Return step 4);
Using serial ports end as when client, the data that serial ports is received are stored in serial ports and receive in buffer area, obtain new number
According to number of frames, sequence of data frames number is the ID number for receiving serial data, and within the same period, the ID of each data frame is only
One, the new ethernet data frame of the data creation received according to serial ports, when creating new ethernet data frame, data portion
It needs to remove CRC check, increases transaction identifier, protocol type, data length in data front, by the ethernet data frame
It is saved in Ethernet transmission buffer, after the new ethernet data frame of the data creation received according to serial ports, storage
While sending buffer area to Ethernet, the sequence number of data frame is transmitted in Ethernet information, Ethernet interface receives number
According to later, corresponding Serial Port Information is searched according to sequence number, the data that Ethernet is received are stored in Ethernet and receive buffering
Qu Zhong traverses Serial Port Information all in Ethernet information, finds out corresponding current data number of frames, connect according to Ethernet
The new serial data frame of the data creation received, when creating new serial data frame, data portion needs to remove data front
The serial data frame is saved in serial ports transmission buffer by transaction identifier, protocol type, data length.
5. data interactive method according to claim 4, it is characterised in that: the data for receiving Ethernet solve
Analysis extracts element identifier (element ID), the function code, data at data portion rear portion, is converted into serial port protocol data, serial ports is received
Transaction identifier, protocol type, data length are added in data portion front, and remove the CRC check of data portion, are converted into
Ethernet protocol data.
6. data interactive method according to claim 4, it is characterised in that: the data for receiving serial ports are stored in serial ports
It receives in buffer area, obtains new sequence of data frames number, create new ethernet data frame, which is saved in
In Ethernet transmission buffer;The data that Ethernet is received are stored in Ethernet and receive in buffer area, traversal Ethernet letter
All Serial Port Informations in breath find out corresponding current data number of frames, create new serial data frame, by the serial ports number
It is saved in serial ports transmission buffer according to frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510937745.5A CN105812346B (en) | 2015-12-12 | 2015-12-12 | A kind of data interactive method of serial equipment and ethernet device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510937745.5A CN105812346B (en) | 2015-12-12 | 2015-12-12 | A kind of data interactive method of serial equipment and ethernet device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105812346A CN105812346A (en) | 2016-07-27 |
CN105812346B true CN105812346B (en) | 2019-03-29 |
Family
ID=56466182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510937745.5A Active CN105812346B (en) | 2015-12-12 | 2015-12-12 | A kind of data interactive method of serial equipment and ethernet device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105812346B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110401670B (en) * | 2019-08-02 | 2021-09-24 | 杭州远流科技有限公司 | Optimized Ethernet transparent transmission method of industrial serial port protocol |
CN111131241A (en) * | 2019-12-23 | 2020-05-08 | 中煤科工集团重庆研究院有限公司 | Method for controlling data transmission efficiency of Ethernet and serial port under coal mine |
CN112235268B (en) * | 2020-09-29 | 2023-01-24 | 北京智芯微电子科技有限公司 | Secure communication method, system and device |
CN113132353B (en) * | 2021-03-19 | 2023-08-22 | 深圳市震有软件科技有限公司 | Data stream conversion method, system and storage medium |
CN113775936B (en) * | 2021-08-18 | 2023-10-24 | 国家管网集团大连液化天然气有限公司 | Multi-main acquisition method for LNG receiving station auxiliary system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101800652A (en) * | 2010-02-04 | 2010-08-11 | 深圳市金宏威实业发展有限公司 | Mode switching method and system of serial port and Ethernet and industrial Ethernet switch |
CN102624738A (en) * | 2012-03-28 | 2012-08-01 | 瑞斯康达科技发展股份有限公司 | Serial port server, protocol conversion chip and data transmission method |
CN103078871A (en) * | 2013-01-18 | 2013-05-01 | 武汉迈威实达软件有限公司 | Serial port Ethernet protocol conversion method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030120822A1 (en) * | 2001-04-19 | 2003-06-26 | Langrind Nicholas A. | Isolated control plane addressing |
US6842454B2 (en) * | 2001-03-14 | 2005-01-11 | Schneider Automation Inc. | Method and system for device addressing on a computer network |
US7263597B2 (en) * | 2001-04-19 | 2007-08-28 | Ciena Corporation | Network device including dedicated resources control plane |
US7185045B2 (en) * | 2002-07-15 | 2007-02-27 | Sixnet, Llc | Ethernet interface device for reporting status via common industrial protocols |
CN101895462B (en) * | 2010-01-28 | 2012-12-19 | 袁亚军 | Serial communication gateway |
CN102437952A (en) * | 2012-01-29 | 2012-05-02 | 山东黄金矿业(莱州)有限公司焦家金矿 | Method for managing multi-variety Modbus protocol message |
-
2015
- 2015-12-12 CN CN201510937745.5A patent/CN105812346B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101800652A (en) * | 2010-02-04 | 2010-08-11 | 深圳市金宏威实业发展有限公司 | Mode switching method and system of serial port and Ethernet and industrial Ethernet switch |
CN102624738A (en) * | 2012-03-28 | 2012-08-01 | 瑞斯康达科技发展股份有限公司 | Serial port server, protocol conversion chip and data transmission method |
CN103078871A (en) * | 2013-01-18 | 2013-05-01 | 武汉迈威实达软件有限公司 | Serial port Ethernet protocol conversion method |
Also Published As
Publication number | Publication date |
---|---|
CN105812346A (en) | 2016-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105812346B (en) | A kind of data interactive method of serial equipment and ethernet device | |
CN105430113B (en) | SDN network ARP message processing methods, system, controller and interchanger | |
CN104023020B (en) | TypeB messages for mobile device subscribe to supplying system and correlation method | |
CN104778042B (en) | A kind of stream data processing method based on event stream processing and plug-in type Development Framework | |
CN107147657A (en) | Suitable for the communication protocol of multimachine reliable communication, decoding method and communication apparatus | |
CN109271793A (en) | Internet of Things cloud platform device class recognition methods and system | |
CN104079571B (en) | A kind of method and device for recognizing Android simulator | |
CN110247967A (en) | Intelligent networking gateway and its data intelligence processing method | |
CN108270699A (en) | Message processing method, shunting interchanger and converging network | |
CN106393114B (en) | A kind of cloud robot system | |
CN105871658B (en) | A kind of Network Sniffing method based on OpenWRT system | |
CN101631122B (en) | Method for improving TDS protocol analysis accuracy in packet-losing environment | |
CN103260190A (en) | Security audit system based on evolution grouping system network and security audit method of security audit system | |
CN104202328B (en) | A kind of method, configuration module and the subscription end of subscription GOOSE/SMV messages | |
CN110167193A (en) | WiFi matches network method and WiFi equipment automatically | |
CN106533728B (en) | Server info collection method and device | |
CN107046509A (en) | A kind of intelligent industrial-control network data integration method parsed based on mirror port | |
CN113382007A (en) | Industrial internet data acquisition and transmission method and system | |
CN103532779B (en) | A kind of method and system of quick positioning shunting device packet loss | |
CN104993977B (en) | Online data monitoring method and system based on IEC61968 standard | |
CN101304565B (en) | Method and unit for recognizing mobile terminal as well as method and system for providing increment service | |
CN104008077B (en) | Device and method based on chip microcontroller serial ports packet capturing | |
CN106656656A (en) | Network device package capture method and device | |
CN105721101B (en) | A kind of method and device for realizing civil aviaton's Message processing | |
CN109617815A (en) | Data collection system, method, apparatus and the terminal device of LTE core network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220817 Address after: No. 7-19, No. 29, Yuzhou Road, Jiulongpo District, Chongqing 400039 Patentee after: Chongqing Chuanyi Software Co., Ltd. Patentee after: CHONGQING CHUANYI AUTOMATION Co.,Ltd. Address before: 400700 No. 1, people's village, Beibei District, Chongqing Patentee before: CHONGQING CHUANYI AUTOMATION Co.,Ltd. |
|
TR01 | Transfer of patent right |