![Siemens TC3 Series Скачать руководство пользователя страница 24](http://html.mh-extra.com/html/siemens/tc3-series/tc3-series_user-manual_379094024.webp)
TC3x Multiplexer User's Guide
TC3x_UG_01_V03.10 -
Released
Page 24/50
10.01.2002
void MP_Dummy_WriteCOM(unsigned int cnt, const char far *msg)
This function is called by the multiplexer when it has finished framing one data package received from
one of the logical channels ports and wants to send it out through the multiplexer port.
void MP_Test_Scanner(UINT8 ucDLCI, UINT8 *pBuffer, UINT16 length)
This function is called by the multiplexer when it has finished unframing one data package received
from the multiplex port and wants to forward it to the corresponding logical channel.
void MP_ReceiveFrame(unsigned char *bBuffer, UINT16 wLength)
This function is called from the subsystem (usually UART receive part) when multiplexed data received
and has to be demultiplexed and transported to the decoded DLCI (the corresponding logical channel).
This is the entry into the multiplex protocol from the multiplexed UART.
void MP_TransmitData (unsigned char tsap, UINT16 length, const char far *pBuffer, enSerial
whichUart, MP_eDLCI ucDLCI)
This function is called, when unframed data on a logical channel will transported using the multiplexer.
Data are encoded for the selected DLCI (the corresponding logical channel) and sent through the
multiplexer to the module. This is the normally used function to transmit data to the module when the
multiplexer is used.
static void print (const char * s)
static void dump (PBYTE pBuffer, WORD wLength)
These two functions are used inside the multiplexer to do some debug output. Both functions are
mapped to the trace mechanism of the PC adaptation.
6.1.2 Port.exe
The port.exe application encloses the hardware COM ports from the used pipe system for internal data
transfer. They map data received on the connected COM port and transfer them via the connected
pipe into the multiplexer system. In opposite direction they send data received on the pipe out to the
COM port.
6.1.3 Controller.exe
As the name suggests, the controller.exe controls the complete PC multiplexer system. This is
primarily enabling and disabling the multiplexer, i.e. enabling and disabling the associated modules and
pipes. To perform this task the controller scans the complete data passed via the control channel for
AT commands that enable the multiplexer or switch the baud rate, and for the associated responses.
The control channel is always only channel 1.
UART
mux’e
d
Multiplexer
ß
Mux‘ed
Demux’ed
à
MP_ReceiveFrame
MP_Dummy_WriteCOM
MP_Test_Scanner
MP_TransmitData
Logical channels
demux’ed
DLCI1 = Data,
AT-Cmd
DLCI2 = AT-Cmd
DLCI3 = AT-Cmd