原创 GSM跳频协议学习笔记

2013-4-24 22:26 2670 16 19 分类: 消费电子

我们如何学习通信协议,对于很多刚入行的同学来说,可能会比较迷惑。这是我在2009年1月写的一篇学习笔记,记录关于GSM跳频问题相关SPEC的学习轨迹,分享分享。

  

结论:每个时隙在某一帧跳到哪个频率上,是动态地,在终端与基站建立一次通信的过程中通过专用的消息来确定的,不能由广播信道得到。

终端可以从BCCH或者DCCH中获得CA,即所有可能的跳频频点表。然后在每次建链的channel assignment消息中,终端确知MA,即从CA中选择出参与跳频的频点号,并获得HSN和MAIO,然后根据帧号计算得到当前帧应该跳频的频点号。

 

 

 

TS 45.002 描述:

6.2        Mapping in frequency of logical channels onto physical channels

6.2.1       General

The parameters used in the function which maps TDMA frame number onto radio frequency channel are defined in subclause 6.2.2. The definition of the actual mapping function, or as it is termed, hopping sequence generation is given in subclause 6.2.3.

In CTS, the specific mapping in frequency depends on the start condition defined by the parameters given in subclause 6.2.2. The hopping sequence generation for CTS is given in subclause 6.2.3.

6.2.2       Parameters

The following parameters are required in the mapping from TDMA frame number to radio frequency channel for a given assigned channel.

General parameters of the BTS, specific to one BTS, and broadcast in the BCCH and SCH:

i)    CA: Cell allocation of radio frequency channels.

ii)   FN: TDMA frame number, broadcast in the SCH, in form T1, T2, T3' (see subclause 3.3.2). For COMPACT, FN is broadcast in the CSCH, in form R1, R2 (see subclause 3.2.2).

Specific parameters of the channel, defined in the channel assignment message:

i)    MA: Mobile allocation of radio frequency channels, defines the set of radio frequency channels to be used in the mobiles hopping sequence. The MA contains N radio frequency channels, where 1 £ N £ 64.

      For COMPACT, the reduced MA (see 3GPP TS 44.060) shall be used for a fixed amount of data blocks, see section 6.2.4.

ii)   MAIO: Mobile allocation index offset.(0 to N‑1, 6 bits).

      For COMPACT, MAIO_2 shall be used for the data blocks using the reduced MA.

iii)  HSN: Hopping sequence (generator) number (0 to 63, 6 bits).

可见,MA,MAIO和HSN是与具体每个用户相关的参数。

 

具体的跳频方案,在TS 45.002中有描述如下:

6.2.3       Hopping sequence generation

For a given set of parameters, the index to an absolute radio frequency channel number (ARFCN) within the mobile allocation (MAI from 0 to N‑1, where MAI=0 represents the lowest ARFCN in the mobile allocation, ARFCN is in the range 0 to 1023 and the frequency value can be determined according to 3GPP TS 45.005), is obtained with the following algorithm:

if HSN = 0 (cyclic hopping) then:

MAI, integer (0 .. N‑1)    :        MAI = (FN + MAIO) modulo N

else:

M, integer (0 .. 152)         :        M = T2 + RNTABLE((HSN xor T1R) + T3)

S, integer (0 .. N‑1) :        M' = M modulo (2 ^ NBIN)

T' = T3 modulo (2 ^ NBIN)

                                                                   if M' < N then:

                                                                                S = M'

                                                                      else:

                                                                                S = (M'+T') modulo N

MAI, integer (0 .. N‑1)    :        MAI = (S + MAIO) modulo N

 

MA参数表,以及是MAIO和HSN参数网络通过“Messages for Radio Resources management”中某条消息传给终端的,详细内容在TS 44.018中有描述。这些消息是在某次通信过程中,网络与终端之间的三层消息,不属于某个广播信道。

 

44.018 中3.4.3.1描述:

 

Channel assignment initiation:

If frequency hopping is applied, the cell allocation if present in the message is used to decode the mobile al********* If the cell allocation is not included, the mobile station uses its current cell allocation, the current CA is the last CA received on the BCCH. Afterward, the current CA may be changed by some messages sent on the main signalling link containing a CA (the possible messages are: ASSIGNMENT COMMAND, HANDOVER COMMAND and FREQUENCY REDEFINITION). Note that there are cases in which the current CA is undefined, see sub-clause 3.4.3.3.

 

CA是用来解码MA的。CA是从BCCH获得,MA是从Channel assignment 消息中获得。

 

10.5.2.1b  Cell Channel Description对CA的格式进行详细描述:

10.5.2.13        Frequency list对CA的格式中具体频率的计算有详细的描述。通过确定的算法获得所有的16,或17,或21,或29个频点。

 

 

10.5.2.21 Mobile Allocation     对MA信息字段有详细解释。

MA C i, Mobile allocation RF channel i (octet 3 etc.), i = 1, 2,..., NF

The MA C i bit indicates whether or not the Mobile allocation frequency list includes the i'th frequency in the cell allocation frequency list.

The cell allocation frequency list is derived from the set of frequencies defined by the reference cell channel description information element. NF denotes the number of frequencies in the cell allocation frequency list.

In the cell allocation frequency list the absolute RF channel numbers are placed in increasing order of ARFCN, except that ARFCN 0, if included in the set, is put in the last position in the list,

For a RF channel belonging to the mobile allocation the MA C i bit is coded with a "1"; i = 1, 2,..., NF.

For a RF channel not belonging to the mobile allocation the MA C i bit is coded with a "0"; i = 1, 2,..., NF.

If NF mod 8 <> 0 then bits NF to 8n in octet 3 must be coded with a "0" in each.

 

10.5.2.5 Channel Description 对MAIO和HSN参数有详细解释,并H值表示是否跳频。

ARFCN, (octet 3, bits 2 and 1, and octet 4, bits 8 to 1)

The ARFCN is coded as the binary representation of the absolute RF channel number

Range: 0 to 1023

H = "1": The channel selector field consists of the mobile allocation index offset, MAIO, and the hopping sequence number, HSN.

MAIO, (octet 3 bit 4 to 1 high part and octet 4 bit 8 to 7 low part)

The MAIO field is coded as the binary representation of the mobile allocation index offset as defined in 3GPP TS 45.002.

Range: 0 to 63.

HSN, (octet 4 bit 6 to 1)

The HSN field is coded as the binary representation of the hopping sequence numberas defined in 3GPP TS 45.002

Range 0 to 63.

PARTNER CONTENT

文章评论3条评论)

登录后参与讨论

用户1498631 2013-9-26 13:21

见我的留言。新浪微博账号也是 blesslm,可以私信给我。

用户1498631 2013-9-26 12:35

这里的博客,新浪的博客,微博,我都是这个账号 blesslm,可以给我留言,私信都行。我会经常查看的。不方便公开的信息,可通过微博私信给我。

用户1715679 2013-9-25 13:15

您好,我们在GSM协议栈开发上面遇到了一些问题,目前协议一致性GSM制式,我们把协议栈实现了,但很不稳定,比如有时用例测试能通过有时不通过,但我们无法定位。想邀请您来进行指导。不知如何能够联系到您?

相关推荐阅读
用户1498631 2016-02-03 08:17
求贤篇--求PHY的开发高手
如果有无线通信终端PHY的算法和软件高手看到此文,且对于做LTE的基带芯片兴趣浓厚,对充满机会与挑战的产品开发有着极强的征服欲,请给我发邮件min.liang@simplnano.cn。 求贤...
用户1498631 2015-12-27 10:45
English studying
Recent one year, language studying stimulates my biggest interest.   When in college, I was go...
用户1498631 2015-10-17 21:32
国庆出游小记
终于有时间坐下来,整理国庆出游小记。一路几千公里的行程,数日奔波。路上趁兴写了点小诗,在此记录。 (好久不动笔,不好意思,纯粹原创,自娱自乐而已。未经作者同意,不可转载)   归途中,...
用户1498631 2015-08-15 10:14
一颗芯片的成本
作者特别申明:如转发此文,请注明原创作者奔跑的小鸟,否则投诉转发者侵权。 作为电子产业链上的一员,无论是芯片的设计者,生产者,测试者,使用者都很想了解清楚一颗芯片的成本究竟由哪几个部分构成。这...
用户1498631 2015-07-12 22:09
Into the wild
Two weekend nights are spent on one excellent film named "Into the wild". This film is based on ...
用户1498631 2015-06-19 08:02
stereotyping issue
注:偏见往往是潜意识里面的东西。越是随着阅历的增加,我们越是容易对人形成偏见。无论是对不同民族,不同地区,不同人种,还是不同性别,甚至与不同的学校。而一些预加的框框,不真实且比较负面地加在了你对某...
EE直播间
更多
我要评论
3
16
关闭 站长推荐上一条 /3 下一条