篇一:《flow_endorse_list.ashx-C#代码例子》
<%@ WebHandler Language="C#" Class="Kernel" %>
using System;
using System.Collections.Generic;
using System.Web;
using System.Data;
using System.Data.Common;
using System.Web.SessionState;
using System.Text;
using eMIS;
public class Kernel : IHttpHandler , IRequiresSessionState
{
public void ProcessRequest (HttpContext context)
{
string flowId;
string nodeId;
string desc;
string userId;
string html;
string programId;
DataManager dm = new DataManager();
StringBuilder sb = new StringBuilder();
string t = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
flowId = context.Request.QueryString["fid"].ToString();
nodeId = context.Request.QueryString["nid"].ToString();
userId = context.Session["userid"].ToString();
string sql = "select COUNT(*), lcid, jdid,cdid,lx from XT_LCRW where jsrid = '" + userId + "' and lcid='" + flowId + "' and jdid='" + nodeId + "' and lx='加签' GROUP BY lcid, jdid,cdid,lx";
DbDataReader reader = dm.ExecuteReader(sql);
string lx;
bool b = false;
string s,s2;
while (reader.Read())
{
b = true;
s2 = "&strCondition=" + context.Server.UrlEncode("ID=" +
reader[2].ToString());
sb.Append("<div><img src='Images/li.gif'> ");
sb.Append("<a style='color:#F37800;' ");
s = "(加签)";
sb.Append("href='javascript:void(0);' onclick="getjqhtml('" + reader[3].ToString() + "','" + reader[1].ToString() + "','" + reader[2].ToString() + "');">");
sb.Append(GetFlowName(dm, reader["LCID"].ToString()) + "-" + GetNodeName(dm, reader["lcid"].ToString(), reader["jdid"].ToString()) + s); sb.Append(" (" + reader[0].ToString() + ")</a></div>"); }
reader.Close();
if (b)
{
sb.Append("<div id='divlist" + flowId + "-" + nodeId + "'
style='padding:4px;'>");
sb.Append("<table id='table1' style='BORDER-COLLAPSE: collapse' border='0' cellspacing='0' cellpadding='6'>");
sb.Append("<tr style='background-image:url(images/line4.gif);'><td>发送人</td><td>发送时间</td><td>备注</td><td>操作</td></tr>");
desc = GetFlowName(dm, flowId) + "-" + GetNodeName(dm, flowId, nodeId); reader = dm.ExecuteReader("select a.jlid,b.xingming as fsr,a.jssj from XT_LCRW a,com_yhb b where a.fsrid=b.id and a.lcid='" + flowId + "' and a.jdid='" + nodeId + "' and a.jsrid = '" + userId + "' and a.lx='加签'");
int i = 0;
while (reader.Read())
{
sb.Append("<tr bgcolor='" + (i % 2 == 0 ? "" : "#FAFCFF") + "'>"); sb.Append("<td>" + reader[1].ToString() + "</td><td>" + reader[2].ToString() + "</td><td></td>");
sb.Append("<td><a style='color:#0088CC;'
href='javascript:void(0);' onclick="openjq('fid=" + flowId + "&nid=" + nodeId + "&rid=" + reader[0].ToString() + "');">加签</a></td></tr>");
i++;
}
reader.Close();
sb.Append("</div>");
sb.Append("</table></div>");
}
context.Response.Write(sb.ToString());
}
private string GetName( DataManager dm,string userId)
{
string r = "";
DbDataReader reader = dm.ExecuteReader("select xingming from com_yhb where id=" + userId);
if(reader.Read())
{
r = reader[0].ToString();
}
reader.Close();
return r;
}
private string GetFlowName( DataManager dm,string FlowID)
{
string ret = "";
DbDataReader reader = dm.ExecuteReader("select LCMC from COM_LCDYB where LCID=" + FlowID);
if (reader.Read())
{
ret = reader[0].ToString();
}
reader.Close();
return ret;
}
private string GetNodeName( DataManager dm,string FlowID, string NodeID) {
string ret = "";
DbDataReader reader = dm.ExecuteReader("select JDMC from COM_LCJDB where LCID=" + FlowID + " and JDID=" + NodeID);
if (reader.Read())
{
ret = reader[0].ToString();
}
reader.Close();
return ret;
}
public bool IsReusable
{
get{ext:info_flow_open_channel:ch_id=100}.
{
return false;
}{ext:info_flow_open_channel:ch_id=100}.
}
}
篇二:《信令流程宝典》
信令流程宝典(Ver.1)
缩略语清单:
Abis接口 BTS到BSC之间的接口 BTS BSC CDMA ECAM
Base Tranceiver System 基站 Base Station Controller Code Division Muti Access
基站控制器
码分多址 扩展信道指配消息
Extended Channel Assignment message
Ec/Io Pilot energy accumulated over one PN chip period(Ec)to the total power spectral desity
(Io) in the received bandwidth
每码片的能量比上所处1.23M带宽内的总功率谱密度 其中Io为有效信号+噪声在信号频带内的总功率
Ec/Ior EC是导频码片功率,IOr为基站前向发射总功率,它们之比表示导频功率占
基站总的发射功率的百分比。
EIB Erase Indication Bit ESCAM FCH FER FMR FW TFC
擦除指示位
Extended Supplemental Channel Assignment Message 扩展补充信道指配消息 Fundamental Channel Frame Error Ratio
基本信道
误帧率
Frame Processing Board Forward Triffic Channel
Mobile Station
帧处理板
前向业务信道
MS NUM_RSCCH OMU
移动台{ext:info_flow_open_channel:ch_id=100}.
反向补充编码信道个数
Number of Reverse Supplemental Code channel Operation Maintenance Unit
操作维护
PMRM Power Measurement Report Message 功率测量报告消息 RC Rx
Radio configuration Received Power
无线配置 接收功率 反向业务信道 补充信道
RV TFC Reverse Triffic Channel SCH Tx
Supplemental Channel Transmit Power
发射功率
FFER Forward Frame Ersure Rate 前向误帧率
一.
CDMA信令集合 .................................................................................. 4
1. 保密与识别 ................................................................................... 4 2. 登记 ......................................................................................... 4 3. 前向链路 ..................................................................................... 4 4. 前向链路 ..................................................................................... 4 二.{ext:info_flow_open_channel:ch_id=100}.
系统消息概述和分类 ............................................................................. 4
1. 消息分类(六种必选) ......................................................................... 4 2. 消息分类(七种可选) ......................................................................... 4 3. 消息分类(业务态) ........................................................................... 5 三.
主叫流程及信令 ................................................................................. 5
1. 空闲态信令讲解及流程 ......................................................................... 5 1.1. 同步信道消息Sync Channel Meg ............................................................ 5 1.2. 接入信道消息Access Parameters Meg ...................................................... 6 1.3. 系统参数消息System Parameters Meg ....................................................... 8 1.4. 邻区列表消息Neighbor List Meg .......................................................... 10 1.5. CDMA信道列表消息CDMA Channel List Meg .................................................. 12 1.6. 扩展系统参数消息Extended System Parameter Meg .......................................... 13 2. 业务态信令讲解及流程 ........................................................................ 15 2.1. 业务在线系统参数消息In-traffic System Parameter Meg .................................... 15 2.2. 邻小区列表更新消息Neighbor List Update Meg ............................................. 16 2.3. 扩展邻小区列表更新消息extended Neighbor list update meg ................................ 16 3. 主叫流程 .................................................................................... 19 3.1. 步骤1:Origination msg ................................................................. 19 3.2. 步骤1-2:手机在起呼后,发送CDMA ACCESS PROBE INFO试探,要求基站响应 ................... 21 3.3. 步骤2:基站确认order .................................................................. 22 3.4. 步骤5:基站发送扩展信道指配消息ECAM .................................................... 23 3.5. 步骤6:手机发送Traffic Channel Preamable ............................................... 25 3.6. 步骤7:基站确认发送ACK消息给手机 ...................................................... 25 3.7. 步骤8:手机向基站发送ACK消息 .......................................................... 26 3.8. 步骤9:基站发送Service Connect msg..................................................... 26 3.9. 步骤10:手机确认后建立业务信道 ......................................................... 27 4. 业务态中的集中消息解释 ...................................................................... 28 4.1. 导频强度测量报告(PSMM) ............................................................... 28 4.2. 功率控制消息power control msg .......................................................... 29 4.3. 切换指示消息universal direction msg .................................................... 30 4.4. 软切换完成消息Handoff Completion Msg ................................................... 32 4.5. 功率测量报告Power Measurement Report Msg ............................................... 33 4.6. MS发起的释放请求 ....................................................................... 34
4.7. 基站确认释放请求 ....................................................................... 35 4.8. 释放后基站辅助完成同步 ................................................................. 36 四.
无线主要指标解释 .............................................................................. 37
1. 接收电平RX_POWER ........................................................................... 37 2. 信噪比Ec/Io ................................................................................ 38 3. 发射功率Tx_power ........................................................................... 39 4. 误帧率FER .................................................................................. 39 五.
路测主要指标解释 .............................................................................. 39
1. 覆盖率 ...................................................................................... 39 2. 掉话率 ...................................................................................... 39 3. 呼叫建立成功率 .............................................................................. 40
一. CDMA信令集合 1.
保密与识别
保密和识别相关参数 CDMA鉴权机制 与鉴权相关的信令消息 CDMA加密机制 与加密相关的信令消息
2.
登记
登记机制 相关参数 与登记相关的信令消息
3.
前向链路
同步信道 寻呼信道 前向业务信道 指令 信息记录
4.
前向链路
接入信道 反向业务信道 指令 信息记录
二. 系统消息概述和分类 1.
消息分类(六种必选)
2.
消息分类(七种可选)
IDLE态的7种信令系统内未使用。
3.
消息分类(业务态)
三. 主叫流程及信令 1.
空闲态信令讲解及流程
本文讲解的空闲态的信令流程是在MS初始化完成后,进入IDEL态后侦听的系统下发的各类消息。 1.1.
同步信道消息Sync Channel Meg
篇三:《呼叫流程》
正常呼叫流程(UE-L3消息)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 UE1 TD SCDMA RRC TD SCDMA RRC TD SCDMA RRC TD SCDMA MM TD SCDMA RRC TD SCDMA RRC TD SCDMA RRC TD SCDMA RRC TD SCDMA MM TD SCDMA MM TD SCDMA RRC TD SCDMA RRC TD SCDMA CC TD SCDMA CC TD SCDMA RRC TD SCDMA RRC TD SCDMA CC TD SCDMA CC TD SCDMA CC TD SCDMA CC ↑ ↓ ↑ ↑ ↓ ↓ ↓ ↓ ↓ ↑ ↓ ↑ ↑ ↓ ↓ ↑ ↓ ↓ ↓ ↑ RRC Connection Request RRC Connection Setup RRC Connection Setup Complete CM Service Request Measurement Control Measurement Control Measurement Control Measurement Control Identity Request Identity Response Security Mode Command Security Mode Complete Setup Call Proceeding Radio Bearer Setup (DL-DCCH) Radio Bearer Setup Complete Progress Alerting Connect Connect Acknowledge
以下是各条消息的详细解码
1 RRC ↑ RRC Connection Request
UL-CCCH-Message
message rrcConnectionRequest :{ext:info_flow_open_channel:ch_id=100}.
initialUE-Identity p-TMSI-and-RAI :
p-TMSI '11000000 00100000 00000000 00000000'B,
rai
lai
plmn-Identity
mcc
4,
6,