background image

TC3x

Siemens Cellular Engines

Multiplex Mode

Installing,

Configuring,

Implementing

Version:

 

V03.10

DocID: TC3x_UG_01_V03.10

Summary of Contents for TC3 Series

Page 1: ...TC3x Siemens Cellular Engines Multiplex Mode Installing Configuring Implementing Version V03 10 DocID TC3x_UG_01_V03 10 ...

Page 2: ...ecifications provided in these guidelines Failure to comply with any of the required procedures can result in malfunctions or serious discrepancies in results Furthermore all safety instructions regarding the use of mobile technical systems including GSM products which also apply to cellular phones must be followed Handheld applications such as mobile phones or PDAs incorporating the described pro...

Page 3: ...f the components for the PC Mux 12 4 1 Hardware Installation 12 4 1 1 Using virtual COM Ports 12 Using physical COM Ports 12 4 2 PC Mux Software Installation 13 4 2 1 Multiplexer Simulation PC Mux 13 5 Using the PC Mux as external multiplexer 16 5 1 Starting the PC Mux 16 5 2 Stopping the PC Mux 18 5 3 Additional buttons of the PC Mux 19 5 4 Examples 19 6 Internal work flow of the PC Mux 22 6 1 Mu...

Page 4: ...d FCS 33 8 3 State Diagrams 34 8 3 1 Startup 37 8 3 2 DLC Establishment 38 8 3 3 Information transfer 38 8 3 4 DLC release 38 8 3 5 Closedown 39 8 3 6 Multiplexer control channel 39 8 3 6 1 Multiplexer close down CLD 39 8 3 6 2 Test command Test 40 8 3 6 3 Modem status command MSC 40 8 3 6 4 Non supported command response NSC 41 8 4 Samples of establishing logical channels 41 8 4 1 Establishing lo...

Page 5: ... CTS signaling 29 Figure 15 Data link layer 31 Figure 16 Relationship between the customer µC and TC3X µC 35 Figure 17 MPl Startup DLC Establishment Information Transfer 36 Figure 18 MP DLC Release Close Down 37 Figure 19 DLC Establishment 38 Figure 20 Information transfer 38 Figure 21 DLC release 38 Figure 22 Multiplexer control channel 39 Figure 23 Modem status command MSC 40 Figure 24 Multiplex...

Page 6: ...g with Windows NT The multiplexer protocol MP sources can be provided The purpose of this document is to describe how to install configure and use the multiplexer in the module as well as the Simulation of the multiplexer protocol PC Mux for Siemens TC3x GSM engines and to explain how to integrate the external multiplexer in your application 1 1 Supported product versions and related documents Ple...

Page 7: ...eady FC Flow Control FFC Flat Flex Cable GPRS General Packet Radio Service GSM Global System of Mobile Communication IEI Information Element Identifier IP Internet Protocol MO Mobile originated MP Multiplexer Protocol MS Mobile Station MSDN Microsoft Developer Network MT Mobile terminated MUX Multiplexer OS Operating System PC Personal Computer PC Mux Multiplexer Simulation RTS Request to Send TE ...

Page 8: ... and make use of the functionality of the multiplexer during the development phase Only the binary versions of the PC Mux files will be provided Provided files When you extract the zip file the following files will be extracted onto your PC chopper exe controller exe log exe muxappl exe muxport exe muxtester exe pcmux dll process exe send exe sharecnt dll simcom sys simcominstall xls simulation ex...

Page 9: ...TC3x Multiplexer User s Guide TC3x_UG_01_V03 10 Released Page 9 50 10 01 2002 2 3 2 Using physical COM Ports 7 RS232 interfaces e g 1 Serial 8 Port expansion card 3 null modem RS232 cables 1 RS232 cable ...

Page 10: ...ntain Mux components which communicate over the Multiplexer Protocol In the TC3x module the Mux MP software is already incorporated The customer application should either integrate the TC3x Mux MP software or include a Mux MP developed by the customer 3 2 Virtual Channels and AT commands Generally take into account that a module including the multiplexer does not include three different devices th...

Page 11: ...channels the one writing last is the one which will be perma nent The others will be lost AT V shows less settings when executed on channels 2 and or 3 than on channel 1 AT CMGF can be configured separately for each channel Note Data and voice calls are not possible simultaneously because of the single air interface For further restrictions of the multiplexer mode please refer to 2 supplied with T...

Page 12: ...rtual Ports and maps them onto the one serial Port which is physically connected to the DSB35 or TC35T See chapter 4 2 1 to install the virtual ports Figure 2 Example configuration of the COM Ports when using virtual COM Ports Note When using virtual COM Ports RTS CTS are not passed to the application So data transfer is not possible 4 1 2 Using physical COM Ports Figure 3 Connection of the COM po...

Page 13: ...ng systems 1 Create a directory on your hard disk were to save the files or use an existing directory and copy the installation files to your hard disk further steps are done in the hard disk directory 2 Remove the write protection from all files Steps 3 to 5 are only relevant when using virtual COM Ports Otherwise proceed with step 6 3 Change to directory simcom 4 Open the Excel file simcominstal...

Page 14: ...erface Port COM1 Baud 57600 DataBits 8 parity 0 no 1 odd 2 even 3 mark 4 space Parity 0 stop bits 0 1 1 1 5 2 2 StopBits 0 Sections CHANNEL1 to CHANNEL3 These sections contain the configuration of the 3 virtual or physical COM ports As above you may modify the Port and Baud settings A baud rate of 19200 bps is sufficient but 57600 are recommended The baud rate setting has no impact on the virtual ...

Page 15: ...channel CHANNEL3 type specifies the executable to start Type PORT own server name Name channel1 default destination CONTROL Destination ctrl serial interface Port COM26 Baud 57600 DataBits 8 parity 0 no 1 odd 2 even 3 mark 4 space Parity 0 stop bits 0 1 1 1 5 2 2 StopBits 0 Note The examples given assume that virtual COM Ports have been installed Instead of COM24 you may connect any other virtual ...

Page 16: ...ng AT IPR has been activated 5 1 Starting the PC Mux Start the PC Mux by double clicking the file simulation exe The Multiplexer Simulation window as in Figure 6 pops up on your screen Click Enable Display 1 in order to trace the MP output on your display Note Only use the display when not in data mode because it takes away too many resources When clicking on Start 2 the virtual ports are initiali...

Page 17: ...re entering AT commands Enter AT CMUX 0 CR LF in a terminal program connected to the first logical channel See also Figure 8 Approximately one second later the module is in multiplex mode Note No ATC response traffic must be ongoing on any of the three logical channels when switching off the multiplexer To check whether the PC Mux is operational enter a short AT command on each of the three termin...

Page 18: ...nected to the first logical channel Note No ATC response traffic must be ongoing on any of the three logical channels when switching off the multiplexer Clicking on Stop frees the COM Ports and PC Mux can be terminated You can use the COM Port which is connected to the module e g for starting a terminal program It is crucial that PC Mux be terminated as described above If you terminate the PC Mux ...

Page 19: ...ng configuration of the simulation ini are displayed Choose Enable Disable Trace to output results into the file trace txt Note The file may become quite big 5 4 Examples Figure 10 shows how to start a multiplexer session First start the multiplexer simulation by double clicking on the simulation exe 1 Then start the terminal programs one after another 2 4 Make sure that the terminal programs are ...

Page 20: ..._01_V03 10 Released Page 20 50 10 01 2002 Figure 11 Multiplexer activation on Hyperterminal With AT CMUX 0 the multiplexer has been activated Now all terminals can be used Figure 12 shows that all terminals are ready to process AT commands ...

Page 21: ...er User s Guide TC3x_UG_01_V03 10 Released Page 21 50 10 01 2002 Figure 12 Three active logical channels The Source Code for the Status messages of the PC Mux is available so that the message flow can be interpreted ...

Page 22: ...ll pcmux dll chop large data blocks into a lot of small ones The block diagram above illustrates the interrelationship between the different modules of the PC adaptation of the multiplexer and presents the two operating states of the PC multiplexer The upper schematic shows the multiplexer with disabled multiplexer protocol as normal COM inter face The dark shaded modules and connections are activ...

Page 23: ...l exe with Pcmux dll This block is the heart of the multiplexer implementation which does all the multiplexing and demulti plexing The reason for implementing it in a separate DLL and an application is that the best approach is to use the same source code of the multiplexer in the module software and on the PC side For this reason this code is separated in a Windows DLL In fact there are some plat...

Page 24: ... 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 ...

Page 25: ...es of the whole multiplexer system the application simula tion exe provides the functionality to switch the multiplexer on or off A Trace window can be opened and closed by pressing the appropriate buttons 6 2 2 Log exe This is a console application which allows to decode and display the internal messages The messages decoded and displayed have to be explicitly sent to an instance of log exe for d...

Page 26: ...ems they are running on the same system or on different systems via LAN or even via WAN Please refer to the MSDN for a very detailed description of this technology The pipe mechanism is encapsulated in different C classes in the PC multiplexer implementation These classes are CMsgServWrap and CMsgClient The idea behind the used expressions MsgServer and MsgClient is that the server creates and con...

Page 27: ...es not set RTS e g ZOC uses RTS this way if RTS CTS handshake is not activated by de fault it cannot send receive data from then Multiplexer Simulation until it toggles the RTS line to High The following procedure is recommended to change from flow control to none flow control follow the steps listed below 1 Flow control is switched on 2 Disable Multiplexer Choose Disable Multiplexer and push butt...

Page 28: ...ertain commands features to certain channels or to assure that the application avoids conflicts Access types valid for all channels Call Control Phonebook access SIM Card access RF settings Time settings ATZ AT F AT V AT W AT CEER AT CLCK Network settings Power save Device locks SMS read write and delete Baud rate settings Access types for Channel 2 and 3 not disturbing other instances URCs RING v...

Page 29: ...e customer application to the module If RTS is reset a STOP is transmitted to the module to control the data transmission from the module to the customer application Figure 14 illustrates the data flow MS Module TC35 TE Kundenapplikation PC Mux Mux Treiber Multiplexer Protocol GSM 07 10 Multiplexer Protocol GSM 07 10 ser IO ser IO COMX COMY COMZ gipsy Remote Control RTS DTR RTS DTR Kanäle 2 3 RTS ...

Page 30: ...is information via the MSC signal to the module see chapter 8 3 6 3 As an alternative ATH may be sent on one of the other channels 7 4 Power Saving Two variants exist in the power save mode with AT CFUN AT CFUN 0 The multiplexer is still enabled AT CFUN 0 1 The module is reset the multiplexer is disabled For the first variant The multiplexer is not disabled The module goes to power save mode and c...

Page 31: ...R 8 Structure of the multiplexer protocol 8 1 Introduction of the multiplexer protocol The multiplexer protocol conforms with the multiplexer protocol GSM 07 10 The non error recovery mode was implemented with the basic option The frames have a start and a stop byte A checksum is calculated to protect the transferred data Frame repetition is not enabled Data calls are transferred in the logical ch...

Page 32: ...on Identifier DLCI are dynamically defined apart from DLCI 0 DLCI number decimal Priority Multiplexer control channel see Section 8 3 6 0 0 highest priority AT commands data gipsy 1 7 AT commands 2 3 7 The command response bit identifies the frame as a command or response A command contains the address of the data link connection to which the command is sent A response contains the address of the ...

Page 33: ...ator can be extended with the E A bit The default length is 31 bytes 1st octet Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 E A L1 L2 L3 L4 L5 L6 L7 2nd octet Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 L8 L9 L10 L11 L12 L13 L14 L15 E A 1 only one octet for the Length Indicator E A 0 two octets for the Length Indicator 8 2 5 Information field The Information Field contains the data and has ...

Page 34: ...have the option of setting up the multiplexer control channel DLCI 0 and other logical channels The logical channels are then set up DLC establishment If the DLC establishment is successful the state machine for that particular channel changes to CONNECTED If the request is unsuccessful the logical channel cannot be established and the state machine remains in DISCONNECTED for that particular chan...

Page 35: ...NNECTED CLOSED DOW N Start Up DLC Establishment Close Down Close Down Close Down DLC parameter negotiation DLC Release Information Transfer DIS CONNECTED DIS CONNECTED NEGOTIATION CONNECTED CLOSED DOW N Start Up DLC Establishment Close Down Close Down Close Down DLC parameter negotiation DLC Release Information Transfer Customer µC Master state machine TC3x µC Slave state machine ...

Page 36: ...d Serial interface Start Up AT CMUX Connected RequestSABM IndicationSABM ResponseDM ConfirmDM DLC Establishment DLC created Disconnected Disconnected RequestSABM IndicationSABM ResponseUA ConfirmUA DLC Establishment DLC not created Connected Connected Connected Connected RequestUIH IndicationUIH IndicationUIH RequestUIH Connected Information Transfer Figure 17 MPl Startup DLC Establishment Informa...

Page 37: ...n IndicationCloseDown ResponseCloseDown ConfirmCloseDown Close Down Closed Down Disconnected Disconnected Negotiation Connected Closed Down Disconnected Disconnected Negotiation Connected 8 3 1 Startup The multiplexer protocol is activated with the AT command AT CMUX 0 This enables the multiplexer control channel The multiplexer control channel must be set up next see DLC establishment section 8 3...

Page 38: ...LCI 0 is the initiating station while the other is called the responding station Customer µC TC3x SABM P 1 Address Field DLCI of channel to be established UA F 1 DLCI is being established DM F 1 not ready DLCI is not established Address Field DLCI of requested channel 8 3 3 Information transfer A response is not essential for every command for example unsolicited code does not require a response C...

Page 39: ...he last octet of the sequence the EA bit 1 otherwise 0 If there is only on octet EA bit 1 is set C R bit Indicates whether the sequence is a command or a response T bits Coding of the command type Length field Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 EA L1 L2 L3 L4 L5 L6 L7 EA bit Extension bit In the last octet of the sequence the EA bit 1 otherwise 0 If there is only one octet EA bit 1 is...

Page 40: ...V 24 signals 1 octet Command Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 1 C R 0 0 0 1 1 1 C R bit Indicates whether the sequence is a command or a response Length Length 2 EA Bit 1 DLCI Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 1 1 DLCI V 24 signals Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 1 FC RTC not support ed reserve d 0 reserve d 0 not support ed not support ed FC bit Flow c...

Page 41: ...tity Type field Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 1 C R 0 0 1 0 0 0 C R bit Indicates whether the sequence is a command or a response Value octet Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 EA C R Command type of the non supported command C R bit Returns the same value as in the received non supported command Frames not recognized by the receiving entity are responded by a NSC fr...

Page 42: ...uestSABM DLCI 0 IndicationSABM DLCI 0 ResponseUA DLCI 0 ConfirmUA DLCI 0 Connected DLCI 0 Connected DLCI 1 DLC Establishment Create DLCI 1 Disconnected DLCI 1 Disconnected DLCI 1 RequestSABM DLCI 1 IndicationSABM DLCI 1 ResponseUA DLCI 1 ConfirmUA DLCI 1 Connected DLCI 1 8 4 2 Closing the multiplexer protocol and returning to AT mode Send Request CLOSE DOWN as a command of the Multiplexer Control ...

Page 43: ...e features which are included in later versions When the multiplexer is started the MS and the application negotiate which MP version to use For each version of the multiplex protocol release notes are published which demonstrate the exact protocol for the version check mention the different release versions document the changes in the protocol feature set which have led to the new release version...

Page 44: ...ources Switch back to the older protocol version on TE side This is done automatically when using the Siemens AG sources This case should not happen since the customer application is put into service with the features which are being offered by Siemens AG at that point of time New protocol features can only be contacted by the application when they have been implemented on the MS side Customer app...

Page 45: ...eds to be executed again the multi plexer has to be deactivated and activated again Case TE MS 01 OLDMUXSW_no_VC OLDMUXSW_no_VC or OLDMUXSW_VC or NEWMUXSW_VC 02 OLDMUXSW_VC or NEWMUXSW_VC OLDMUXSW_no_VC 03 OLDMUXSW_VC or NEWMUXSW_VC OLDMUXSW_VC or NEWMUXSW_VC 04 OLDMUXSW_VC or NEWMUXSW_VC NEWMUXSW_VC or OLDMUXSW_VC OLDMUXSW_no_VC old software version with no version check OLDMUXSW_VC is not the ne...

Page 46: ...n check takes place Message flow case 01 9 4 2 Description Case 02 For Case 02 only on TE side software with version check is installed The Test Command Message is sent back from the MS side but no Test Message with the MS multiplexer version is triggered The lowest multiplexer software version shall be used on TE side The MS can not inform the TE which software is installed ...

Page 47: ...to the used version Message Flow Case 03 TE MS enable DLC DLCI 0 3 AT CMUX 0 UIH TestCommand P 0 C R 1 TEMUX_Version UIH TestCommand_Resp P 0 C R 0 TEMUX_Version no Test Command with MS multiplexer version is triggered The lowest multiplexer version is used on TE side TE MS enable DLC DLCI 0 3 AT CMUX 0 UIH TestCommand P 0 C R 1 TEMUX_VersionX UIH TestCommand_Resp P 0 C R 0 TEMUX_VersionX Comparis...

Page 48: ... responding cases If the response message is not received as expected the multiplexer stays in the state DLC_CONNECTEDWAIT4RESPONSE until another multiplexing related action takes place However it is possible to send test commands with any contents with exception of test messages with the specific IEI for the Version Check as defined in chapter 9 5 If a test command with any contents is sent it ha...

Page 49: ...ersion is used specifically for SIEMENS equipment and is not defined in ETSI standards The IEI values defined for the verification pattern of the TestCommand message are indicated in Table 10 see GSM recommendation 07 10 chapter 5 4 6 3 4 IEI coding Information element name 8 7 6 5 4 3 2 1 0 0 0 0 0 1 0 0 TEMUX_VERSION 0 0 0 0 1 0 0 0 MSMUX_VERSION Other values reserved for future use For easier a...

Page 50: ...0 0 0 0 0 0 1 1 03 Address Field DLCI 0 C R 0 EA 0 1 1 1 0 1 1 1 1 EF Control Field UIH Frame P F 0 0 0 0 0 1 0 1 1 25 Length LENGTH 18 EA 1 0 0 1 0 0 0 1 1 23 Type Field TestCommand C R 1 EA 1 0 0 0 0 0 1 1 1 21 Length Lenth 16 EA 1 0 0 0 0 0 1 0 0 04 TEMUX_VERSION 54 T 45 E 4D M 55 U 58 X 56 V 45 E 52 R 53 S 49 I 4F O 4E N 39 Version number 999 39 0 0 0 0 0 0 0 1 39 X X X X X X X X XX FCS is cal...

Reviews: