CN101488944A - 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
CN101488944A
CN101488944A CNA2008100430273A CN200810043027A CN101488944A CN 101488944 A CN101488944 A CN 101488944A CN A2008100430273 A CNA2008100430273 A CN A2008100430273A CN 200810043027 A CN200810043027 A CN 200810043027A CN 101488944 A CN101488944 A CN 101488944A
Authority
CN
China
Prior art keywords
bsc
equipment
hang
gets
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.)
Granted
Application number
CNA2008100430273A
Other languages
Chinese (zh)
Other versions
CN101488944B (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 may 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 integrated process of implementation data, data flowing in each host computer system and each software systems acid test proposed with sharing.
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 principle as shown in Figure 1, and Enet-B equipment comprises a RS232C serial ports and a RJ45Ethernet interface, realizes the conversion of interface and agreement by chip.The BSC protocol procedures 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 easily causes 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 as shown in Figure 3.
BSC protocol monitor message frame form 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 to be solved in the present invention is to utilize Enet-B to realize communicating by letter of Ethernet equipment and serial equipment, to such an extent as to and can not cause protocol violation to make communication disruption in communication process.
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 that adopts is, 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 that adopts is, 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, by 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 by the described 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 not cause protocol violation to make communication disruption in communication process.
Description of drawings
Below in conjunction with the drawings and the specific embodiments the present invention is described in further detail.
Fig. 1 is that Enet-B realizes Ethernet equipment and BSC serial equipment communicating schematic diagram;
Fig. 2 is the BSC protocol procedures;
Fig. 3 is a BSC protocol data message frame format schematic diagram;
Fig. 4 is a BSC protocol monitor message frame form schematic diagram;
Fig. 5 is the one embodiment of the present invention schematic diagram;
Fig. 6 utilizes Eneb-B to realize the BSC protocol conversion and the routine interface schematic diagram 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 the physical link connection diagram of one embodiment of the invention.
Embodiment
The present invention realizes communicating by letter of Ethernet and BSC serial equipment at the scene in the environment, one execution mode as shown in Figure 7, use Enet-B to do the physical link conversion, use 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, development agreement communication module XCOM, by 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 by application database and Ethernet equipment, create in the application database text allocation list and text interface table are arranged, the network information that module is intercepted Ethernet equipment application server and Enet-B communication is intercepted in the configuration communication, start communication and intercept module and protocol communication module XCOM, the application program of Ethernet equipment application server writes program to be sent by application database, after protocol communication module XCOM finds in the application database data to be sent are arranged, according to the BSC agreement it is transmitted to the BSC serial equipment through Enet-B equipment, data and processing that the application program of Ethernet equipment application server receives by 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 not cause protocol violation to make communication disruption in communication process.
Conversion of the BSC protocol status of protocol communication module XCOM and routine interface be 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 reaches as follows 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 enters 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 situations 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 concrete enforcement 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).
The Ethernet equipment of an embodiment of the present invention sends data flow as shown in Figure 7 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 from BSC serial equipment receiving data stream journey as shown in Figure 8: the BSC serial equipment sends the data to Enet-B equipment according to the BSC agreement, Enet-B equipment is converted to Transmission Control Protocol with the data that receive and sends to protocol communication module XCOM, 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, by 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,, EOT and ENQ can 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, described 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, by the package informatin of line treatment TCPDUMP, therefrom analyze bottom and reply situation.
Table 2:
Figure A200810043027D00121
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, when sending and replying SEQ when identical, then bottom is replied and is 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 finishes, and communication module XCOM continues follow-up flow process.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 disconnects former connection and reconnects.
Because when Enet-B equipment disconnects TCP/IP and is connected, the situation that can't disconnect may appear, when disconnecting connection, can select normal disconnection, perhaps disconnect by force, can send (RST) signal that resets to Enet-B equipment by protocol communication module XCOM and realize disconnecting 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, by 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 by the described 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 in 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 F.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 the TCP layer data sends successful; 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)
Normally →/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)
Normally →/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 (10)

1, the system of a kind 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.
2, the system of Ethernet equipment according to claim 1 and BSC serial equipment communicating, it is characterized in that, comprise 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 by 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 finishes, communication module XCOM continues follow-up flow process, when sending with 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, protocol communication module XCOM does not receive that as exceeding schedule time sending bottom replys and receive signal, then disconnects 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 by tcpdump-v-li ethernet host ipaddr order.
4, according to claim 1, the system of 2 or 3 described Ethernet equipment and BSC serial equipment communicating, it is characterized in that, also comprise an application interface database, create in the application interface database text allocation list and text interface table are arranged, protocol communication module XCOM is provided with the priority of oneself, and the application program swap data by application interface database and Ethernet equipment, the application program of Ethernet equipment writes data to be sent by the application interface database, after protocol communication module XCOM finds in the application interface database data to be sent are arranged, through Enet-B equipment it is transmitted to the BSC serial equipment communicating according to the BSC agreement, data and processing that the application program of Ethernet equipment receives by application interface data base querying protocol communication module XCOM.
5, the system of Ethernet equipment according to claim 4 and BSC serial equipment communicating is characterized in that, protocol communication module XCOM is divided into 6 states with the BSC protocol procedures in program, and each state reaches as follows 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 enters 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 situations 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.
6, the method for a kind of 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.
7, the method of Ethernet equipment according to claim 6 and BSC serial equipment communicating, it is characterized in that, comprise 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 by 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 finishes, communication module XCOM continues follow-up flow process, when sending with 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, protocol communication module XCOM does not receive that as exceeding schedule time sending bottom replys and receive signal, then disconnects former connection and reconnects.
8, the method for Ethernet equipment according to claim 7 and BSC serial equipment communicating is characterized in that, obtains the TCP package informatin by tcpdump-v-li ethernet host ipaddr order.
9, according to claim 6, the method of 7 or 8 described Ethernet equipment and BSC serial equipment communicating, it is characterized in that, also comprise an application interface database, create in the application interface database text allocation list and text interface table are arranged, protocol communication module XCOM is provided with the priority of BSC agreement, and the application program swap data by application interface database and Ethernet equipment, the application program of Ethernet equipment writes data to be sent by the application interface database, after protocol communication module XCOM finds in the application interface database data to be sent are arranged, through Enet-B equipment it is transmitted to the BSC serial equipment communicating according to the BSC agreement, data and processing that the application program of Ethernet equipment receives by application interface data base querying protocol communication module XCOM.
10, the method for arbitrary Ethernet equipment according to claim 9 and BSC serial equipment communicating is characterized in that, protocol communication module XCOM is divided into 6 states with the BSC protocol procedures in program, and each state reaches as follows 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 enters 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 situations 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.
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 true CN101488944A (en) 2009-07-22
CN101488944B 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)

Cited By (1)

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

Family Cites Families (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

Cited By (1)

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

Also Published As

Publication number Publication date
CN101488944B (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN103856934B (en) Establish the method and more home devices of multipath connection
CN106201375B (en) Websocket-based network sharing printing control method
CN102598625B (en) Method and apparatus for changing input type in input system using universal plug and play
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
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
CN114422288A (en) Communication system based on Modbus protocol
CN111404739B (en) System for configuring serial port networking attribute
CN116366928B (en) USB camera bridging method and cloud terminal
WO2020125705A1 (en) Novel kvm extender
CN104850518A (en) Method for remotely logging in computer
CN101155177B (en) Data channel sharing system and method based on shared protocol
CN111885022A (en) Mimicry communication method based on communication interface, communication architecture and terminal equipment
CN116069443A (en) Working method of virtual terminal
US5051892A (en) Full duplex conversation between transaction programs
US20100274840A1 (en) Cooperation apparatus using peer-to-peer and method thereof
CN110098989A (en) A kind of multichannel CAN analogue system and test method based on CANFD bus
CN201601690U (en) Input-output module based on EtherCAT technique
CN110096002A (en) A kind of automatization test system and test method based on CANFD bus
CN107395478A (en) A kind of network control system and network communication module for high speed cigarette packaging facilities
Cisco SNA Host Configuration for SDLC Networks
CN210274135U (en) Remote connection system
JP2012070293A (en) Duplex communication method and device with high reliability

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