CN101488944B - System and method for communication between Ethernet device and BSC serial port device - Google Patents

System and method for communication between Ethernet device and BSC serial port device Download PDF

Info

Publication number
CN101488944B
CN101488944B CN2008100430273A CN200810043027A CN101488944B CN 101488944 B CN101488944 B CN 101488944B CN 2008100430273 A CN2008100430273 A CN 2008100430273A CN 200810043027 A CN200810043027 A CN 200810043027A CN 101488944 B CN101488944 B CN 101488944B
Authority
CN
China
Prior art keywords
bsc
equipment
gets
hang
communication module
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
Application number
CN2008100430273A
Other languages
Chinese (zh)
Other versions
CN101488944A (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.)
Shanghai Baosight Software Co Ltd
Original Assignee
Shanghai Baosight Software 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 Shanghai Baosight Software Co Ltd filed Critical Shanghai Baosight Software Co Ltd
Priority to CN2008100430273A priority Critical patent/CN101488944B/en
Publication of CN101488944A publication Critical patent/CN101488944A/en
Application granted granted Critical
Publication of CN101488944B publication Critical patent/CN101488944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

This invention disclose a system and method for Ethernet device communicating with BSC serial port device, using an Enet-B device to connect an Ethernet device and a BSC serial port device, further comprising a protocol communication module XCOM. The transmission mode of the Enet-B device is set as a gradually converting mode A; the protocol communication module XCOM is used for realizing the communication conversion of the serial port device and the Ethernet device via the Enet-B device. A TCPDUMP program is used for capturing a TCP/IP protocol and filtering a bottom layer answer signal; and the protocol communication module XCOM is informed by a UNIX signal so as to guarantee the synchronous transmission and avoiding the automatic packing of the TCP/IP protocol. This invention uses the Enet-B device to realize the communication between the Ethernet device and the serial port device, without the communication interruption caused by the collision protocol in the communication process.

Description

The system and method for Ethernet equipment and BSC serial equipment communicating
Technical field
The invention belongs to communication technical field, the system and method for particularly a kind of Ethernet equipment and serial equipment communicating.
Background technology
Because enterprise has just begun IT application process period early; Inevitably can leave over the network environment and the system environments of some different times; Because the data that different user provides maybe be from different approach; This wherein even comprise the production control system of non-network environment, its data content, data format and the quality of data vary, sometimes in addition can run into that data format can not be changed or the data transaction form after thorny problem such as drop-out.Therefore in the middle of the process of implementing data integration, acid test has been proposed data flowing and sharing in each host computer system and each software systems.
The a lot of early stage information systems of enterprise adopt the BSC serial port communicating protocol; When old information system is transformed; Need communicate with the Ethernet server, the Ethernet server adopts Transmission Control Protocol, therefore needs to solve the communication problem of BSC serial equipment and Ethernet equipment.
The BSC agreement proposes for IBM the earliest, is a kind of point-to-point semiduplex character-oriented synchronous transmission control protocol.IBM does not provide BSC agreement Related product and support at present.Japan Enet-B equipment is the special equipment of realizing BSC agreement and Transmission Control Protocol conversion, can realize the transition of communications of serial equipment and Ethernet equipment,
Enet-B realizes that principle is as shown in Figure 1, and Enet-B equipment comprises a RS232C serial ports and a RJ45 Ethernet interface, realizes the conversion of interface and agreement through chip.The BSC protocol procedures is as shown in Figure 2.Because the BSC agreement is point-to-point half-duplex synchronous transmission agreement, therefore for avoiding the conflict (when both sides ask to send data simultaneously) of shaking hands, in agreement; Need priority be set to communicating pair; Promptly a side is Master (master), the opposing party be Slave (from), in when conflict; Master continues request and sends, and Slave then changes reception into.The device transmission pattern (TRANS) of Enet-B equipment has three kinds of A, D, E; Pattern D, E are the internal agreement of Enet-B equipment disposition; Mode A is translative mode one by one, and Enet-B equipment does not adopt the internal agreement of configuration when being set to one by one translative mode A, and adopts the external protocol deal with data.When Enet-B device transmission pattern was set to D, E, Enet-B equipment was according to BSC agreement automatic data processing, but Enet-B equipment only can be square and not configurable as the Master (master) of BSC serial port communicating protocol.Because Enet-B equipment is cured as the Master mode; And on-the-spot BSC serial equipment agreement also often is cured as the Master mode; In use; Because amount of communication data is bigger, to such an extent as to a large amount of conflicts frequently is prone to cause protocol violation to make communication disruption in communication process, can not solve the communication problem of the BSC serial equipment of a lot of enterprises with Ethernet equipment.
BSC agreement control character is as shown in table 1.
BSC protocol data message frame format is as shown in Figure 3.
BSC protocol monitor message frame form is as shown in Figure 4.
Table 1:
Mark SOH STX ETX ?EOT ?ENQ ?ACK0 ?ACK1 DEL NAK SYN ETB
Title The preface beginning The literary composition beginning Literary composition eventually Send complete Inquiry Confirm Confirm Escape Deny Synchronously Piece eventually
The ASCII character value 01H 02H 03H ?04H ?05H ?1030H ?1031H 10H 15H 16H 17H
EBCDIC 01H 02H 03H ?37H ?2DH ?1070H ?1061H 10H 3DH 32H 26H
Summary of the invention
The technical problem that the present invention will solve is to utilize Enet-B to realize communicating by letter of Ethernet equipment and serial equipment, to such an extent as to and can in communication process, not cause protocol violation to make communication disruption.
For solving the problems of the technologies described above; The system of Ethernet equipment of the present invention and serial equipment communicating, the technical scheme of employing are to link to each other with Ethernet equipment and BSC serial equipment with Enet-B equipment; It is characterized in that; Also comprise a protocol communication module XCOM, the transmission mode of Enet-B equipment is set to translative mode A one by one, utilizes protocol communication module XCOM to realize the transition of communications of serial equipment and Ethernet equipment through Enet-B equipment.
For solving the problems of the technologies described above; The method of Ethernet equipment of the present invention and serial equipment communicating, the technical scheme of employing are to link to each other with Ethernet equipment and BSC serial equipment respectively with Enet-B equipment; It is characterized in that; Also comprise a protocol communication module XCOM, the transmission mode of Enet-B equipment is set to translative mode A one by one, utilizes protocol communication module XCOM to realize BSC, the Transmission Control Protocol conversion of serial equipment and Ethernet equipment through Enet-B equipment.
The present invention uses Enet-B to do the physical link conversion, based on ICP/IP protocol, and exploitation BSC protocol communication program, through the state of BSC agreement is analyzed, the user mode machine is realized state conversion process, realizes the configuration of Master/Slave; Use the TCPDUMP program to catch ICP/IP protocol and filter out the bottom answer signal,, guarantee synchronous transmission, avoid the automatic packaging of ICP/IP protocol through the said BSC protocol communication of UNIX signalisation program.The present invention utilizes Enet-B to realize communicating by letter of Ethernet equipment and serial equipment, to such an extent as to and can in communication process, not cause protocol violation to make communication disruption.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is done further explain.
Fig. 1 is that Enet-B realizes Ethernet equipment and BSC serial equipment communicating sketch map;
Fig. 2 is the BSC protocol procedures;
Fig. 3 is a BSC protocol data message frame format sketch map;
Fig. 4 is a BSC protocol monitor message frame form sketch map;
Fig. 5 is an execution mode sketch map of the present invention;
Fig. 6 utilizes Eneb-B to realize the BSC protocol conversion and the routine interface sketch map of Ethernet equipment and serial equipment communicating;
Fig. 7 is that the Ethernet equipment of an embodiment of the present invention sends data flowchart to the BSC serial equipment;
Fig. 8 is that the Ethernet equipment of an embodiment of the present invention is from BSC serial equipment receiving data stream journey figure;
Fig. 9 is that the physical link of one embodiment of the invention connects sketch map.
Embodiment
The present invention realizes communicating by letter of Ethernet and BSC serial equipment at the scene in the environment; One execution mode is as shown in Figure 7, uses Enet-B to do the physical link conversion, uses serial port connecting wire RS232 interface to connect BSC serial communication equipment and Enet-B; Use twisted-pair feeder RJ45 interface to connect Enet-B and Ethernet equipment application server (can direct-connected or pass through switch); And the transmission mode of Enet-B equipment is set to translative mode A one by one, based on ICP/IP protocol, and development agreement communication module XCOM; Through the state of BSC agreement is analyzed; Carry out state exchange, realize the configuration of Master/Slave, protocol communication module XCOM is provided with the priority of himself; And the application program swap data through application database and Ethernet equipment; Creating in the application database has text allocation list and text interface table, and the network information that module is intercepted Ethernet equipment application server and Enet-B communication is intercepted in the configuration communication, starts communication and intercepts module and protocol communication module XCOM; The application program of Ethernet equipment application server writes program to be sent through application database; Protocol communication module XCOM is transmitted to BSC serial equipment according to the BSC agreement with it through Enet-B equipment after finding in the application database data to be sent are arranged, data and processing that the application program of Ethernet equipment application server receives through application database vlan query protocol VLAN communication module XCOM.Thereby realization Ethernet equipment is communicated by letter with serial equipment, to such an extent as to and can in communication process, not cause protocol violation to make communication disruption.
Conversion of BSC protocol status and the routine interface of protocol communication module XCOM are as shown in Figure 6:
XCOM is in program for the protocol communication module, and communication party's treaty override level is set, and in protocol procedures, if run into conflict, then handles according to the rule of Master/Slave.In program, the BSC protocol procedures is divided into 6 states, each state and following to the reaction of input action:
START: each state parameter of initialization, set up TCP and connect, IDLE gets the hang of;
IDLE: idle condition gets into this state when not having text to send or to receive; To send the SEND that gets the hang of as text, when receiving the ENQ RECV that gets the hang of;
SEND: send ENQ and send data, when receiving the ACK0 SDATA that gets the hang of according to the priority and the received content of BSC protocol communication module; When the priority that receives ENQ and BSC protocol communication module is the main SEND that gets the hang of; When the priority that receives ENQ and BSC protocol communication module is from the RECV that gets the hang of;
SDATA: send telegraph text content and change the IDLE state over to according to the BSC protocol format, when receiving the ACK1 IDLE that gets the hang of; Other situation SDATA that gets the hang of;
RECV: empty buffering area, send ACK0, prepare to receive data, when receiving the STX RDATA that gets the hang of; When receiving NAK or the receive time-out IDLE that gets the hang of;
RDATA: receive character and also be spliced into text, when receiving the data RDATA that gets the hang of; When receiving the ETB RECV that gets the hang of; When receiving the NAK RECV that gets the hang of; When receiving the ETX IDLE that gets the hang of; As the receive time-out RECV that gets the hang of;
In practical implementation of the present invention, BSC serial equipment priority is cured as main (Master), and priority that should BSC protocol communication module is set to from (Slave).
It is as shown in Figure 7 that the Ethernet equipment of an embodiment of the present invention sends data flow to the BSC serial equipment: the application program of Ethernet equipment writes application database with data to be sent; Protocol communication module XCOM checks data to be sent and data to be sent is sent to Enet-B according to the BSC agreement that Enet-B sends to BSC serial communication equipment with the data of receiving according to serial port protocol from application database.Ethernet equipment is as shown in Figure 8 from BSC serial equipment receiving data stream journey: the BSC serial equipment sends the data to Enet-B equipment according to the BSC agreement; Enet-B equipment is that Transmission Control Protocol sends to protocol communication module XCOM with the data transaction that receives; Protocol communication module XCOM writes the data that receive in the application database, receives tables of data in the Application inspection application database of Ethernet equipment and handles the data of receiving.
For avoiding the automatic packaging of ICP/IP protocol; The network information that module is intercepted Ethernet equipment application server and Enet-B communication is intercepted in the configuration communication; Communication is intercepted module and is used that the network data acquisition analysis tool---the TCPDUMP program is caught the ICP/IP protocol package informatin and filtered out the bottom answer signal; Through UNIX signalisation protocol communication module XCOM, guarantee synchronous transmission.
In communication process, for continuous transmission data conditions, promptly last send EOT and send ENQ next time before, if network is shaken, it is successful that the BSC signal procedure can't judge at the TCP layer whether EOT sends, so can continue to send ENQ.For this situation,, can EOT and ENQ be stitched together and send to Enet-B equipment simultaneously, and BSC equipment the phenomenon that crashes unusually can occur after receiving EOT+ENQ because ICP/IP protocol guarantees to send.For guaranteeing the synchronism of BSC communication protocol; Need to judge whether the data of tcp/ip layer send success; Said communication is intercepted module and is used tcpdump-v-li ethernet host ipaddr order to obtain the TCP package informatin of Enet-B equipment with Ethernet equipment interface place; Through the package informatin of line treatment TCPDUMP, therefrom analyze bottom and reply situation.
Table 2:
04:17:56.492886?IP(tos?0x0,ttl?60,id?56083,offset?0,flags[none],length:41)140.100.100.97.tcoregagent>tr51m0_1580_svc.466?30:P[tcp?sum?ok]3982567:3982568(1)ack?38271249?win?409604:17:56.493371?IP(tos?0x0,ttl?60,id?10381,offset?0,flags[DF],length:42)tr51m0_1580_svc.46630>140.100.100.97.tcoregagent:P[tcp?sum?ok]38271249:38271251(2)ack?3982568?win?1752004:17:56.545911?IP(tos?0x0,ttl?60,id?56084,offset?0,flags[none],length:40)140.100.100.97.tcoregagent>tr51m0_1580_svc.466?30:.[tcp?sum?ok]ack?38271251?win?4096
With the TCP package informatin shown in the table 2 is example; The runic sequence number is for sending SEQ (sequence number); The bold Italic sequence number is that bottom is replied SEQ, and when sending and replying SEQ when identical, then bottom is replied and received; Communication is intercepted module and is sent bottom at this moment and reply and receive that signalisation protocol communication module XCOM sends data and accomplishes, and communication module XCOM continues flow.When sending and replying SEQ when inequality; Then bottom is replied and is not received; Communication is intercepted and is not sent module at this moment bottom and reply and receive that signal arrives notification protocol communication module XCOM, and protocol communication module XCOM does not receive that as exceeding schedule time sending bottom replys and receive signal, then breaks off former connection and reconnects.
Because when being connected with Enet-B equipment disconnection TCP/IP; Situation about can't break off possibly appear; When breaking off connection, can select normal disconnection, perhaps break off by force, can send (RST) signal that resets to Enet-B equipment through protocol communication module XCOM and realize breaking off by force connection.
The present invention realizes communicating by letter of Ethernet and BSC serial equipment at the scene in the environment; Use Enet-B to do the physical link conversion, based on ICP/IP protocol, exploitation BSC protocol communication program; Through the state of BSC agreement is analyzed; The user mode machine is realized state conversion process, simplifies procedures and realizes and increase readability, realizes the configuration of Master/Slave; Use the TCPDUMP program to catch ICP/IP protocol and filter out the bottom answer signal,, guarantee synchronous transmission, avoid the automatic packaging of ICP/IP protocol through the said BSC protocol communication of UNIX signalisation program.
The present invention can realize the data communication of Ethernet equipment and BSC serial communication equipment; Can control the bottom of ICP/IP protocol and reply the synchronous transmission that realizes the BSC agreement; Can reset to Enet-B equipment or Ethernet equipment by force in case of necessity, expand the scope of application of Enet-B equipment.
Be a specific embodiment below.
1. physical link connects
As shown in Figure 9.Enet-B equipment adopts the RS-232C mouth to connect with BSC serial communication equipment, adopts the RJ45-A straight through cable to join with Ethernet equipment.
2. physical link wiring standard
Enet-B equipment is as shown in table 3 at RS-232C end output signal.Enet-B equipment adopts the RJ45-A straight through cable at ethernet side, and fixed-bandwidth is 10BaseT.
Table 3:
The pin sequence number Signal name ?JIS The leg signal explanation
1 ?K.G ?FG Be connected to the earth connection of machine
2 ?TXD ?SD DOL Data Output Line
3 ?RXD ?RD Data In-Line
4 ?RTS ?RS Require to send data
5 ?CTS ?CS Respond the transmission permission of the RTS of the other side's transmission, tell the other side to send
6 ?DSR ?DR This machine of informing is in armed state
7 ?S.G ?SG The earth connection of holding wire (the zero standard directrix of holding wire)
8 ?CD ?CD Carrier wave detects, in order to confirm whether to receive the carrier wave of BSC equipment
15 ST2 ST2 Transmission clock
17 RXC RT Receiver clock
20 DTR ER Data terminal is ready to
24 ST1 ST1 Transmission clock
3. device parameter setting
Data link layer parameter (Enet-B equipment configuration parameter):
BPS:BSC holds transmission rate (4800b/s, 9600b/s, 19200b/s)
DUP: dual-mode (only supporting half-duplex HALF)
CODE:BSC holds character set (JIS8, EBCDIC)
DATA:BSC holds character set (JIS8, EBCDIC)
BCC: checking mode (CRC-16 multinomial: CRC=X^16+X^15+X^2+1)
TRANS: device transmission pattern (only supporting translative mode A one by one)
CD: carrier wave come into force (D, E)
MAX: ethernet side data packet length (maximum 1460)
STIP: this equipment ethernet address
HOST: external host ethernet address
STSP: this equipment Ethernet listening port
STDP: external host Ethernet listening port
TCPD: ethernet side character set (JIS8, EBCDIC)
NETM: gateway address
BRDA: broadcast gateway address
4. protocol communication module XCOM text configuration
A) hostdc: 2 code names (EB) that indicate Enet-B equipment
B) hostname: indicating the longest 8 of Enet-B equipment is code name (bschost)
C) protocol: use agreement (BSC)
D) communicationmode: linking scheme (C/S)
E) the ip address (10.25.34.100) of ip:Enet-B equipment
F) listening port of port:Enet-B equipment (1976)
G) hostoffline:Enet-B equipment whether online (1/0)
H) MODE:BSC treaty override level (slave [low priority], master [high priority])
5. program start
Carry out sigsend.sh and start_bsc.sh and start communication program.Protocol communication module XCOM program and Enet-B equipment connect; Communication is intercepted modular program and is intercepted communication process, and judges whether successful the TCP layer data sends; Need to send if protocol communication module XCOM has detected data, be about to these data and send according to the BSC agreement.
6. process is checked
Order: ps-eaf|grep python|grep bsc (lookup process) is normal →/xcomprod/product/3.0/bin/python/xcomprod/product/3.0/bin/bsc.py X6 is unusual → no process
Order: ps-eaf|grep python|grep sigsend (lookup process) is normal →/xcomprod/product/3.0/bin/python/home/scripts/xcom/sigsen d.py is unusual → no process
7. daily record is checked
The tcpdump2.log:Tcpdump signal triggering
Order: ls-rtl (viewing files information)
Normally → the file journalization maintenance is up-to-date
Unusually →, daily record is not upgraded
Bsc.log:Xcom communication daily record
A) order: ls-rtl (viewing files information)
Normally → the file journalization maintenance is up-to-date
Unusually → daily record do not upgrade
B) order: tail-f bsc.log (trace log)
Normally → the daily record normal refresh
Unusually → daily record do not upgrade
C) order: more bsc.log (checking log content)
Normally → do not have " close connect " the character string appearance
Unusually → have following character string to occur: " close connect "

Claims (8)

1. the system of Ethernet equipment and BSC serial equipment communicating; Link to each other with Ethernet equipment and BSC serial equipment with Enet-B equipment; It is characterized in that; Also comprise a protocol communication module XCOM, the transmission mode of Enet-B equipment is set to translative mode A one by one, utilizes protocol communication module XCOM to realize the transition of communications of serial equipment and Ethernet equipment through Enet-B equipment;
Protocol communication module XCOM is divided into 6 states with the BSC protocol procedures in program, each state and following to the reaction of input action:
START: each state parameter of initialization, set up TCP and connect, IDLE gets the hang of;
IDLE: idle condition gets into this state when not having text to send or to receive; To send the SEND that gets the hang of as text, when receiving the ENQ RECV that gets the hang of;
SEND: send ENQ and send data, when receiving the ACK0 SDATA that gets the hang of according to the priority and the received content of BSC protocol communication module; When the priority that receives ENQ and BSC protocol communication module is the main SEND that gets the hang of; When the priority that receives ENQ and BSC protocol communication module is from the RECV that gets the hang of;
SDATA: send telegraph text content and change the IDLE state over to according to the BSC protocol format, when receiving the ACK1 IDLE that gets the hang of; Other situation SDATA that gets the hang of;
RECV: empty buffering area, send ACK0, prepare to receive data, when receiving the STX RDATA that gets the hang of; When receiving NAK or the receive time-out IDLE that gets the hang of;
RDATA: receive character and also be spliced into text, when receiving the data RDATA that gets the hang of; When receiving the ETB RECV that gets the hang of; When receiving the NAK RECV that gets the hang of; When receiving the ETX IDLE that gets the hang of; As the receive time-out RECV that gets the hang of;
The priority of BSC protocol communication module be set to from.
2. the system of Ethernet equipment according to claim 1 and BSC serial equipment communicating is characterized in that, comprises that also communication intercepts module; Communication is intercepted module and is used network data acquisition analysis tool TCPDUMP to obtain the TCP package informatin of Enet-B equipment with Ethernet equipment interface place; Obtain the TCP package informatin through line treatment, whether the bottom of judging the TCP package informatin obtain transmits Sequence Number number identical with the bottom response sequence, when sending when number identical with response sequence; Then bottom is replied and is received; Communication is intercepted module and is sent bottom and reply and receive that signalisation protocol communication module XCOM sends data and accomplishes, and communication module XCOM continues flow, when sending and response sequence when number inequality; Then bottom is replied and is not received; Communication is intercepted module and is not sent bottom and reply and receive that signal arrives notification protocol communication module XCOM, and protocol communication module XCOM does not receive that as exceeding schedule time sending bottom replys and receive signal, then breaks off former connection and reconnects.
3. the system of Ethernet equipment according to claim 2 and BSC serial equipment communicating is characterized in that, obtains the TCP package informatin through tcpdump-v-li ethernet host ipaddr order.
4. according to the system of claim 1,2 or 3 described Ethernet equipment and BSC serial equipment communicating; It is characterized in that; Also comprise an application interface database; Creating in the application interface database has text allocation list and text interface table, and protocol communication module XCOM is provided with the priority of oneself, and passes through the application program swap data of application interface database and Ethernet equipment; The application program of Ethernet equipment writes data to be sent through the application interface database; Protocol communication module XCOM is transmitted to BSC serial equipment communicating through Enet-B equipment with it according to the BSC agreement after finding in the application interface database data to be sent are arranged, data and processing that the application program of Ethernet equipment receives through application interface data base querying protocol communication module XCOM.
5. the method for Ethernet equipment and BSC serial equipment communicating; Link to each other with Ethernet equipment and BSC serial equipment respectively with Enet-B equipment; It is characterized in that; Also comprise a protocol communication module XCOM, the transmission mode of Enet-B equipment is set to translative mode A one by one, utilizes protocol communication module XCOM to realize BSC, the Transmission Control Protocol conversion of serial equipment and Ethernet equipment through Enet-B equipment;
Protocol communication module XCOM is divided into 6 states with the BSC protocol procedures in program, each state and following to the reaction of input action:
START: each state parameter of initialization, set up TCP and connect, IDLE gets the hang of;
IDLE: idle condition gets into this state when not having text to send or to receive; To send the SEND that gets the hang of as text, when receiving the ENQ RECV that gets the hang of;
SEND: send ENQ and send data, when receiving the ACK0 SDATA that gets the hang of according to the priority and the received content of BSC protocol communication module; When the priority that receives ENQ and BSC protocol communication module is the main SEND that gets the hang of; When the priority that receives ENQ and BSC protocol communication module is from the RECV that gets the hang of;
SDATA: send telegraph text content and change the IDLE state over to according to the BSC protocol format, when receiving the ACK1 IDLE that gets the hang of; Other situation SDATA that gets the hang of;
RECV: empty buffering area, send ACK0, prepare to receive data, when receiving the STX RDATA that gets the hang of; When receiving NAK or the receive time-out IDLE that gets the hang of;
RDATA: receive character and also be spliced into text, when receiving the data RDATA that gets the hang of; When receiving the ETB RECV that gets the hang of; When receiving the NAK RECV that gets the hang of; When receiving the ETX IDLE that gets the hang of; As the receive time-out RECV that gets the hang of;
And the priority of BSC protocol communication module be set to from.
6. the method for Ethernet equipment according to claim 5 and BSC serial equipment communicating is characterized in that, comprises that also communication intercepts module; Communication is intercepted module and is used network data acquisition analysis tool TCPDUMP to obtain the TCP package informatin of Enet-B equipment with Ethernet equipment interface place; Obtain the TCP package informatin through line treatment, whether the bottom of judging the TCP package informatin obtain transmits Sequence Number number identical with the bottom response sequence, when sending when number identical with response sequence; Then bottom is replied and is received; Communication is intercepted module and is sent bottom and reply and receive that signalisation protocol communication module XCOM sends data and accomplishes, and communication module XCOM continues flow, when sending and response sequence when number inequality; Then bottom is replied and is not received; Communication is intercepted module and is not sent bottom and reply and receive that signal arrives notification protocol communication module XCOM, and protocol communication module XCOM does not receive that as exceeding schedule time sending bottom replys and receive signal, then breaks off former connection and reconnects.
7. the method for Ethernet equipment according to claim 6 and BSC serial equipment communicating is characterized in that, obtains the TCP package informatin through tcpdump-v-li ethernet host ipaddr order.
8. according to the method for claim 5,6 or 7 described Ethernet equipment and BSC serial equipment communicating; It is characterized in that; Also comprise an application interface database; Creating in the application interface database has text allocation list and text interface table, and protocol communication module XCOM is provided with the priority of BSC agreement, and passes through the application program swap data of application interface database and Ethernet equipment; The application program of Ethernet equipment writes data to be sent through the application interface database; Protocol communication module XCOM is transmitted to BSC serial equipment communicating through Enet-B equipment with it according to the BSC agreement after finding in the application interface database data to be sent are arranged, data and processing that the application program of Ethernet equipment receives through application interface data base querying protocol communication module XCOM.
CN2008100430273A 2008-01-16 2008-01-16 System and method for communication between Ethernet device and BSC serial port device Active CN101488944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100430273A CN101488944B (en) 2008-01-16 2008-01-16 System and method for communication between Ethernet device and BSC serial port device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100430273A CN101488944B (en) 2008-01-16 2008-01-16 System and method for communication between Ethernet device and BSC serial port device

Publications (2)

Publication Number Publication Date
CN101488944A CN101488944A (en) 2009-07-22
CN101488944B true CN101488944B (en) 2012-07-11

Family

ID=40891625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100430273A Active CN101488944B (en) 2008-01-16 2008-01-16 System and method for communication between Ethernet device and BSC serial port device

Country Status (1)

Country Link
CN (1) CN101488944B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070900B (en) * 2020-07-27 2023-04-07 大唐移动通信设备有限公司 DPDK-based packet capture processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297192A (en) * 2000-12-26 2001-05-30 北京和利时系统工程股份有限公司 In-situ implementation method for site software of bus peripherals
CN1567897A (en) * 2003-07-04 2005-01-19 刘建邦 Channelizing E1/T1 terminal emulation equipment and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1297192A (en) * 2000-12-26 2001-05-30 北京和利时系统工程股份有限公司 In-situ implementation method for site software of bus peripherals
CN1567897A (en) * 2003-07-04 2005-01-19 刘建邦 Channelizing E1/T1 terminal emulation equipment and method

Also Published As

Publication number Publication date
CN101488944A (en) 2009-07-22

Similar Documents

Publication Publication Date Title
CN102835091B (en) Multimedia USB data transmission is through digital video and the interactive interface of audio (DiiVA)
CN105743757B (en) The method of the free networking of RS485 communicating terminals
JPH0783365B2 (en) I / O network for computer system
CN103095703B (en) A kind of method, equipment and system realizing network and serial port data interactive
CN102598625A (en) Method and apparatus for changing input type in input system using universal plug and play
CN101834783A (en) Method and device for forwarding messages and network equipment
CN104113491A (en) Data transmission method and device
CN101902457B (en) System for configuring external communication protocol and method thereof
CN101453356A (en) Computer switch and method thereof for matching with multiple servers
CN116991121A (en) EPA scheduling method and device compatible with multiple protocols
CN109818710A (en) A kind of data transmission method and corresponding intrument
CN117439838B (en) Edge computing gateway master-slave machine-oriented self-adaptive rapid networking method
CN101488944B (en) System and method for communication between Ethernet device and BSC serial port device
CN111404739B (en) System for configuring serial port networking attribute
CN112929418B (en) Rapid IO high-speed communication method and system based on publish-subscribe
EP1993268A2 (en) Method, system and relay device for transmitting packet
CN116366928B (en) USB camera bridging method and cloud terminal
WO2020125705A1 (en) Novel kvm extender
CN115514682B (en) Data transmission method, device, equipment and storage medium
US5051892A (en) Full duplex conversation between transaction programs
CN101155177B (en) Data channel sharing system and method based on shared protocol
CN116069443A (en) Working method of virtual terminal
US20100274840A1 (en) Cooperation apparatus using peer-to-peer and method thereof
CN201601690U (en) Input-output module based on EtherCAT technique
CN210274135U (en) Remote connection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant