Python
文章平均质量分 64
zhenggao2
Focus on 4G/5G RAN planning & optimization, also interested in AI/DL.
展开
-
NG Toolset开发笔记--5GNR Resource Grid(56)//ngapp_build20190730
Here is the link of 'ngapp_build20190730':链接: https://pan.baidu.com/s/1W75S_cFg0t3857Pna1iukw提取码: 0ozvHere is an example ngapp configuration file:链接: https://pan.baidu.com/s/1aTMFl99LBmMaKTB_...原创 2019-07-30 18:17:47 · 939 阅读 · 8 评论 -
NG Toolset开发笔记--5GNR Resource Grid(45)
Procedures to determine Type-0 CSS(CORESET0) time/freq-domain position:there are 3 multiplexing patterns for css0/coreset0:*multiplexing pattern 1, which uses TDM only*multiplexing pattern 2, wh...原创 2019-01-14 13:24:24 · 1040 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(43)
General assumptions for implementation:(1) Considerations on time-domain notationsfn + subframe + slot + symbolSFN: 0~1023 in decimal and 0x000~0x3FF in hexsubframe per radio frame: 10 in deci...原创 2019-01-04 00:53:30 · 650 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(42)
Implementation notes on 'msg3 pusch' and 'pusch scheduled by dci 0_1' tbs calculation procedures:2018-12-25 update: 根据RAN#82会议CR更正‘actual number of ptrs ports'算法及对nrOfSRS-Ports的理解。(1) PUSCH differ...原创 2018-12-23 01:57:55 · 1148 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(41)
Procedures to calcuclate TBS for PDSCH/PUSCH:def getTbs(self, sch='pdsch', tp=0, rnti='c-rnti', tab='qam64', td=1, fd=1, mcs=0, layer=1, dmrs=0, xoh=0, scale=1): self.ngwin.logEdit.append('...原创 2018-12-07 12:38:47 · 1424 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(39)
Procedures for SLIV(Start and Length Indication Value):def makeSliv(self, S, L): if L <= 0 or L > 14 - S: return None if (L - 1) <= 7: sliv...原创 2018-11-27 22:13:00 · 541 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(40)
Implementation notes on 'Msg3 PUSCH':Note 1: 'msg3 pusch' is scheduled by RAR.Note 2: 'msg3 pusch' use RA type1, can be configured in RACH-ConfigCommon to use 'transform precoding', and can be con...原创 2018-11-30 08:38:36 · 598 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(38)
Procedures to parse/make RIV(resource indication value):def parseRiv(self, riv, N_BWP_Size): div = riv // N_BWP_Size rem = riv % N_BWP_Size L_RBs = [div + 1, N_BWP_...原创 2018-11-26 17:32:18 · 1301 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(36)
截至11-19号,完成了:*DCI configurations, including:--->dci 1_0 for sib1/msg2/msg4--->dci 1_1 for normal pdsch--->dci 0_1 for normal pusch--->rar ul grant for msg3 puschall DCI setting...原创 2018-11-20 09:33:43 · 417 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(44)
1/9 update: recvSsb works now, and 'excel export' funciton is ready.part of recvSsb:'excel export' is implemented with xlsxwriter library:Example screenshots as below(Note that time-doma...原创 2019-01-09 20:32:27 · 320 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(47)
1/26 update: recvSib1 is ok now.monitorPdcch returns (hsfn, sfn, slot) indicating the detected DCI 1_0(with RNTI=SI-RNTI for SIB1 scheduling).#receiving SSB nrGrid.recvSsb(hsfn, sfn) ...原创 2019-01-26 11:55:12 · 657 阅读 · 1 评论 -
NG Toolset开发笔记--5GNR Resource Grid(46)
Procedures to determine PDCCH candidate of CSS0/CORESET0:1, CCE-to-REG mapping procedureNote1: For 'contents of regBundles/cces', horizontal is freq-domain and vertical is time-domain.Configura...原创 2019-01-17 01:55:03 · 474 阅读 · 1 评论 -
NG Toolset开发笔记--5GNR Resource Grid(55)
7/23 update:aotSrs is OK, including:*(TODO) transmission of DSR for Msg5 scheduling*(TODO) and PDCCH occasion detection within CORESET1/USS (need the 'SRS resource indication' field in DCI 0_1)...原创 2019-07-24 01:24:12 · 675 阅读 · 10 评论 -
NG Toolset开发笔记--5GNR Resource Grid(54)
5/3 update:aotCsiRs is ok, including:*transmission of periodic NZP-CSI-RS*transmission of periodic CSI-IM*transmission of periodic Tracking-RS(or TRS)5/5 update: *TRSperiodicity should be...原创 2019-05-03 17:17:17 · 1408 阅读 · 12 评论 -
NG Toolset开发笔记--5GNR Resource Grid(53)
4/8 update:*sendPucch for Msg4 HARQ feedback is okAfter receiving Msg4 ending in slot n, UE should send corresponding HARQ feedback in slot n+K1.For Msg4 harq feedback, common pucch set is us...原创 2019-04-08 23:13:03 · 784 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(52)
4/7 update:*recvMsg4 is ok*add 'always-on-transmission' functions, including: aotSsb, aotPdcchSib1 and aotSib1*add UI pararmeters for CSI-RS configurations4/15 update:*add CSI-ResourceConfig...原创 2019-04-07 11:46:01 · 1927 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(51)
4/1 update:sendMsg3 is ok now, including:*determine DMRS for Msg3 PUSCH*Msg3 PUSCH time-domain/freq-domain resource mapping*misc. updateand bugfixto ngapp(1) determine DMRS for msg3 PUS...原创 2019-04-01 14:12:01 · 529 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(50)
ngapp_build20190320放出后,陆续收到反馈:app总是报错,不容易找到valid configuraiton能让工具顺利导出excel。为方便调试验证,新增下列feature:(1) 如果options/enable debug勾选,不会再执行excel导出操作,即使configuration是正确的。如果需要导出excel,请去勾选options/enable debug...原创 2019-03-26 15:22:49 · 1128 阅读 · 6 评论 -
NG Toolset开发笔记--5GNR Resource Grid(48)
3/17 update:sendMsg1 is ready now, including:*PRACH association period determination*SSB to PRACH occasion mapping*PRACH time-domain/freq-domain resource mapping(1) PRACH association peri...原创 2019-03-17 13:09:47 · 811 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(49)
3/19 update:recvMsg2 is ok now, including:*PDCCH monitoring after sending msg1*Msg2 time-domain/freq-domain resource mapping (similar to SIB1)*release first alpha version of ngapp: ngapp_build...原创 2019-03-19 23:46:12 · 683 阅读 · 1 评论 -
NG Toolset开发笔记--5GNR Resource Grid(37//Milestone)
截至11/21号完成UI整体设计(marked as milestone reached):*initial ul bwp: including bwp-generic, prach(msg1), dmrs for msg3 pusch, pucch-common for msg4 harq feedback*dedicated dl bwp: including bwp-ge...原创 2018-11-21 15:06:16 · 996 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(35)
截至11/13号完成:*SSB settings*PDCCH settings when 'carrier band' is changed:*update 'groupPresense' in SSB settings when 'carrier scs' is changed:*update 'scsCommon' in MIB and 'refSc...原创 2018-11-13 19:56:42 · 629 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(5)
2/9号完成fillSib2和fillSib3的coding。2018-2-12:参照36.211和36.213规范,更新fillNbSib2和fillNbSib3。举例说明NB-SIB2的mapping:def fillNbSib2(self, hsfn, sfn): dn = str(hsfn) + '_' + str(sfn) if not dn in sel...原创 2018-02-09 13:01:44 · 354 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(7)
2/11号更新fillNpdcchUss(详见系列文章第6篇),完成fillNrs。fillNrs实现如下:def fillNrs(self, hsfn, sfn): dn = str(hsfn) + '_' + str(sfn) if not dn in self.gridNbDl: self.ngwin.logEdit.append('C...原创 2018-02-11 20:57:45 · 253 阅读 · 0 评论 -
scfc/vendor xml文件解析
用于解析nokia设备的scfc/vendor等xml文件。用xml.etree.ElementTree来写,相比QXmlStreamReader要简洁的太多!from collections import OrderedDictimport xml.etree.ElementTree as ETimport osimport timeimport ngmainwinclas原创 2018-02-06 01:29:40 · 445 阅读 · 0 评论 -
NG Toolset开发笔记--LTE Resource Grid(2)
coding完毕,举例NgLteGrid.fillSrs实现如下:def fillSrs(self): #Note: Since srs has many ue-specific parameters, such as frequency bandwidth and offset and ue-specific subframe config. #so we j原创 2018-01-29 21:15:10 · 526 阅读 · 0 评论 -
NG Toolset开发笔记--LTE Resource Grid(1)
首先是ui部分,ngltegridui.pyclass NgLteGridUi(QDialog): def __init__(self, ngwin): super().__init__() self.ngwin = ngwin self.args = dict() self.initResGridMapper()原创 2018-01-28 23:45:47 · 1319 阅读 · 0 评论 -
NG Toolset开发笔记--NgMainWin
开发NG Toolset的目的有2个:(1) 、将原来LTE Toolset V1/V2的部分工具,用Python重写;(2)、增加5GNR的部分工具。长期计划是探索与构造Deep Learning在RAN NPO中的应用。因为LTE Toolset V1/V2使用Qt/C++实现的,所以NG Toolset的UI会用PyQt实现:'''ngmainwin.py''原创 2018-01-28 23:28:28 · 781 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(2)
第二步是UI设计,包含4个tab:Host LTE、NB-IoT Common、NB-IoT UL和NB-IoT DL。比如nbiot ul tab:NB UL carrier对应PRB位置,缺省为紧挨着上端PRACH放置。NB DL carrier的PRB位置由界面配置。原LTE Grid更新如下:UL/DL Grid中对应NB UL/DL carrier的PRB标记为NB UL和N原创 2018-02-01 20:39:00 · 274 阅读 · 0 评论 -
simple thunder link(thunder://) parser
simple thunder link parserwritten by github/zhenggao2 with python#!/usr/bin/python3# -*- endocing: utf-8 -*-import base64import os''' example thunder link: thunder://QUFodHRwOi8vbm5u原创 2018-01-24 12:04:52 · 1545 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(6)
2/10初步完成NgNbiotGrid.fillNpdcchUss(TODO:NPDCCH Gap未实现)。2018-2-11:fillNpdcchUss中,参照36.211更新npdcch mapping。2018-2-12:增加flag:recvingNpdcch, recvingNpdsch和sendingNpusch。2/12 update:resetNpdcchUssMap在monito...原创 2018-02-10 18:44:07 · 288 阅读 · 1 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(9)
2/12,完成recvNpdschWoBcch和fillNpdschWoBcch(TODO:NPDSCH Gap未实现):其中recvNpdschWoBcch实现如下:def recvNpdschWoBcch(self, hsfn, sfn, subf): self.ngwin.logEdit.append('call resetNpdschWoBcchMap with N=%d,...原创 2018-02-12 12:43:33 · 279 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(10)
截至 2/12开发进度测试结果汇总:(UI特殊配置参数有:NB-IoT DL tab中,resource assignment(dci n1) = 2, repetition number(dci n1) = 2, npdcch-numRepetitions-r13 = r64)CCE statistics:-->CCE number in subframe 0 = 21-->CC...原创 2018-02-12 12:52:04 · 294 阅读 · 0 评论 -
NG Toolset开发笔记--5GNR Resource Grid(34)
10/28~11/1号完成Carrier Grid/SSB Grid相关参数的实现:For simplicity, assume:*subcarrierSpacingCommon in MIB is the same as scs of the carrier;*bands for SUL/SDL is not supported. when 'operating band...原创 2018-11-01 23:01:43 · 462 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(14)
2/24号完成:(1)更新fillNpuschFormat1/fillNpuschFormat2,增加DMRS for NPUSCH(2)实现exportCsv将nb grid导出为csv文件,NgNbiotGridUi中解析csv文件并以tab显示(3)几处bugfix:fillNrs, fillSib2, fillSib3, fillNpbch, fillNpss, fillNsss, mon...原创 2018-02-24 11:30:07 · 292 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(13)
2/23号完成:(1)sendNpuschFormat1(2)fillNpuschFormat1和fillNpuschFormat2至此,NB Grid基本实现完毕。(todo list:NPDSCH/NPDCCH gap和以tab方式绘制nb grid)比如fillNpuschFormat1实现如下:def fillNpuschFormat1(self, hsfn, sfn...原创 2018-02-23 10:11:15 · 260 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(12)
2/22号完成:(1)更新resetNprachMapping,计算nprachGapSlots和nprachSlots,分别为NPRACH Gap及NPRACH占用hsfn-sfn-slot列表;(2)增加incSlot,用于递增n个ul slot;(修正一处incSubf bug)(3)实现了sendNpuschFormat2。其中incSlot定义如下:def incSlot(hsfn, s...原创 2018-02-22 21:29:40 · 330 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(11)
2/17号完成NPRACH时频域资源计算。(1)考虑到nprach采用3.75KHz single-tone frequency hopping,所以修改ngNbGridUl的shape为:(1, 48, self.symbPerRfNbUl) #init gridNbDl and gridNbUl for dn="hsfn_sfn" if not dn in self.gridN...原创 2018-02-17 20:06:42 · 423 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(4)
2/7号,完成以下coding:self.fillHostCrs(hsfn, sfn) self.fillNpss(hsfn, sfn)self.fillNsss(hsfn, sfn)self.fillNpbch(hsfn, sfn)举例NPBCH mapping实现:def fillNpbch(self, hsfn, sfn): dn = str(hsfn) + '_' + st...原创 2018-02-07 18:35:02 · 273 阅读 · 0 评论 -
NG Toolset开发笔记--NB-IoT Resource Grid(3)
***考虑到NB上行时域基本单位为slot,与LTE不同,没有subframe的概念。所以改写time2str36:def time2str36(hsfn, sfn, slot, symb): #HSFN, range 0~1023, two base36 chars strHsfn = base_repr(hsfn, base=36) #SFN, range 0~10原创 2018-02-07 18:26:07 · 394 阅读 · 0 评论