Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
taskbus_course
提交
b6707208
taskbus_course
项目概览
colorEagleStdio
/
taskbus_course
通知
25
Star
5
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
taskbus_course
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b6707208
编写于
3月 15, 2024
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加入模拟工程。目前钟差有待调试,其余已经达到目的
上级
87a6e655
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
501 addition
and
1 deletion
+501
-1
projects/8psk_simulate.tbj
projects/8psk_simulate.tbj
+492
-0
src/a0simplechannel/main.cpp
src/a0simplechannel/main.cpp
+9
-1
未找到文件。
projects/8psk_simulate.tbj
0 → 100644
浏览文件 @
b6707208
{
"mod0": {
"network_pcaphub": {
"input_subjects": {
"packin": {
"instance_value": 9,
"tooltip": "packin",
"type": "bytes"
}
},
"instance": {
"additional_args": "IND=1;OUTD=-1;nice=2;",
"batchtime": 20,
"exec": "../modules/pcap_hub/pcapHub.exe",
"instance_value": 2
},
"name": {
"name": "pcap_hub"
},
"output_subjects": {
"packout": {
"instance_value": 1,
"tooltip": "packout",
"type": "bytes"
}
},
"parameters": {
"autostart": {
"default": 0,
"instance_value": 0,
"tooltip": "auto start",
"type": "int"
},
"hide": {
"default": 0,
"instance_value": 0,
"tooltip": "hide window when start",
"type": "int"
}
}
}
},
"mod1": {
"transform_fft": {
"input_subjects": {
"signal": {
"instance_value": 2,
"tooltip": "signal",
"type": "byte"
},
"tmstamp_in": {
"instance_value": "",
"tooltip": "tmstamp_in",
"type": "uint64"
}
},
"instance": {
"additional_args": "nice=2;",
"batchtime": 20,
"exec": "../modules/transform_fft.exe",
"instance_value": 4
},
"name": {
"name": "libfftw"
},
"output_subjects": {
"FFT": {
"instance_value": 3,
"tooltip": "FFT in dB",
"type": "vector"
},
"Spec": {
"instance_value": "",
"tooltip": "Spec in Complex",
"type": "vector"
},
"tmstamp_out": {
"instance_value": "",
"tooltip": "tmstamp_out",
"type": "uint64"
}
},
"parameters": {
"channels": {
"default": 1,
"instance_value": 1,
"tooltip": "Channels",
"type": "int"
},
"fftsize": {
"default": 1024,
"instance_value": 1024,
"tooltip": "fft size",
"type": "int"
},
"frame_span": {
"default": 16,
"instance_value": 16,
"range": ">=1",
"tooltip": "Frame Span (count) between each fft calc. Slower CPU need larger spans.",
"type": "int"
},
"input_type": {
"default": 0,
"instance_value": "1",
"tooltip": "0=Real,1=Complex",
"type": "int"
},
"mod": {
"default": 0,
"instance_value": 0,
"range": "0=Frame,1=Continous",
"tooltip": "WorkingMod",
"type": "int"
},
"sptype": {
"default": 0,
"instance_value": 0,
"range": {
"0": "16 bit Intel",
"1": "16 bit Moto",
"2": "int8",
"3": "uint8"
},
"tooltip": "sample point format",
"type": "enum"
}
}
}
},
"mod2": {
"sink_plots": {
"input_subjects": {
"plot0": {
"instance_value": 3,
"tooltip": "input0",
"type": "byte"
},
"plot1": {
"instance_value": 5,
"tooltip": "input1",
"type": "byte"
},
"plot2": {
"instance_value": "",
"tooltip": "input2",
"type": "byte"
},
"plot3": {
"instance_value": "",
"tooltip": "input3",
"type": "byte"
},
"plot4": {
"instance_value": "",
"tooltip": "input4",
"type": "byte"
}
},
"instance": {
"additional_args": "nice=2;",
"batchtime": 20,
"exec": "../modules/sink_plots.exe",
"instance_value": 5
},
"name": {
"name": "plots"
},
"parameters": {
"channels": {
"default": "1,1,1,1,1,1",
"instance_value": "0,2,1,1,1,1",
"range": {
"tip": "0:1d spectrogram 1: 1d wav or 2:2d xy"
},
"tooltip": "各路通道数",
"type": "string"
},
"datatypes": {
"default": "9,9,9,9,9",
"instance_value": "9,9,9,9,9",
"range": {
"value": "0:uint8 1:int8 2:uint16 3:int16 4:uint32 5:int32 6:uint64 7:int64 8:float 9:double"
},
"tooltip": "各路数据类型",
"type": "string"
}
},
"version": {
"version": "1,1,0"
}
}
},
"mod3": {
"a2psk_encap": {
"input_subjects": {
"input": {
"instance_value": 1,
"tooltip": "package",
"type": "byte"
},
"water_mark": {
"instance_value": 7,
"tooltip": "water mark for uhd",
"type": "int"
}
},
"instance": {
"additional_args": "IND=4,3;OUTD=1;nice=0;",
"batchtime": 20,
"exec": "../course/a2psk/a2psk_encap.exe",
"instance_value": 6
},
"name": {
"name": "a2psk_encap"
},
"output_subjects": {
"output": {
"instance_value": 10,
"tooltip": "encap signal",
"type": "vector"
}
},
"parameters": {
"min_watermark": {
"default": 10000,
"instance_value": "30000",
"tooltip": "Min Watermark",
"type": "long long"
},
"mod_type": {
"default": 1,
"instance_value": "3",
"tooltip": "1:BPSK,2:QPSK,3:8PSK",
"type": "int"
}
}
}
},
"mod4": {
"a2psk_mod": {
"input_subjects": {
"input": {
"instance_value": 10,
"tooltip": "encap msg",
"type": "byte"
}
},
"instance": {
"additional_args": "nice=0;",
"batchtime": 20,
"exec": "../course/a2psk/a2psk_mod.exe",
"instance_value": 7
},
"name": {
"name": "a2psk_mod"
},
"output_subjects": {
"output": {
"instance_value": 11,
"tooltip": "iq16bits",
"type": "vector"
}
},
"parameters": {
"mod_type": {
"default": 1,
"instance_value": "3",
"tooltip": "1:BPSK,2:QPSK,3:8PSK",
"type": "int"
},
"shaping_filter": {
"default": 1,
"instance_value": 1,
"tooltip": "enable 1:4 pre-shaping",
"type": "bool"
}
}
}
},
"mod5": {
"a2psk_dem": {
"input_subjects": {
"input": {
"instance_value": 2,
"tooltip": "iq16bits",
"type": "vector"
}
},
"instance": {
"additional_args": "nice=0;",
"batchtime": 20,
"exec": "../course/a2psk/a2psk_dem.exe",
"instance_value": 8
},
"name": {
"name": "a2psk_dem"
},
"output_subjects": {
"iqcoord": {
"instance_value": 5,
"tooltip": "iq coords",
"type": "double coords"
},
"output": {
"instance_value": 4,
"tooltip": "dembits",
"type": "byte"
}
},
"parameters": {
"mod_type": {
"default": 1,
"instance_value": "3",
"tooltip": "1=BPSK,2=QPSK,3=8PSK",
"type": "int"
}
}
}
},
"mod6": {
"a2psk_decap": {
"input_subjects": {
"input": {
"instance_value": 4,
"tooltip": "encap msg",
"type": "vector"
}
},
"instance": {
"additional_args": "OUTD=-1;nice=0;",
"batchtime": 20,
"exec": "../course/a2psk/a2psk_decap.exe",
"instance_value": 9
},
"name": {
"name": "a2psk_decap"
},
"output_subjects": {
"output": {
"instance_value": 8,
"tooltip": "package",
"type": "byte"
}
},
"parameters": {
"mod_type": {
"default": 1,
"instance_value": "3",
"tooltip": "1=BPSK,2=QPSK,3=8PSK",
"type": "int"
}
}
}
},
"mod7": {
"a0_simplechannel": {
"input_subjects": {
"input": {
"instance_value": 11,
"tooltip": "baseband_in",
"type": "iqshort"
}
},
"instance": {
"additional_args": "OUTD=1,-2;nice=2;",
"batchtime": 20,
"exec": "C:/projects/taskbus_win64.20240304/course/a0common/a0simplechannel.exe",
"instance_value": 3
},
"name": {
"name": "a0_simplechannel"
},
"output_subjects": {
"output": {
"instance_value": 2,
"tooltip": "baseband_out",
"type": "iqshort"
},
"tx_mark": {
"instance_value": 7,
"tooltip": "TXWaterMark",
"type": "int64"
}
},
"parameters": {
"df": {
"default": 0,
"instance_value": "100000",
"tooltip": "1/freq err in points",
"type": "int"
},
"noise": {
"default": 0,
"instance_value": "10",
"tooltip": "noise",
"type": "short"
},
"ppm": {
"default": 0,
"instance_value": "0",
"tooltip": "clock err in ppm",
"type": "int"
},
"sample_rate": {
"default": 1000000,
"instance_value": 1000000,
"tooltip": "Simu sample rate (Hz)",
"type": "int"
}
}
}
},
"mod8": {
"network_pcaphub": {
"input_subjects": {
"packin": {
"instance_value": 8,
"tooltip": "packin",
"type": "bytes"
}
},
"instance": {
"additional_args": "IND=1;OUTD=-1;nice=2;",
"batchtime": 20,
"exec": "../modules/pcap_hub/pcapHub.exe",
"instance_value": 1
},
"name": {
"name": "pcap_hub"
},
"output_subjects": {
"packout": {
"instance_value": 9,
"tooltip": "packout",
"type": "bytes"
}
},
"parameters": {
"autostart": {
"default": 0,
"instance_value": 0,
"tooltip": "auto start",
"type": "int"
},
"hide": {
"default": 0,
"instance_value": 0,
"tooltip": "hide window when start",
"type": "int"
}
}
}
},
"pos0": {
"x": 2044,
"y": 1129
},
"pos1": {
"x": 2691,
"y": 1582
},
"pos2": {
"x": 3021,
"y": 1554
},
"pos3": {
"x": 1721,
"y": 1314
},
"pos4": {
"x": 2013,
"y": 1544
},
"pos5": {
"x": 2695,
"y": 1374
},
"pos6": {
"x": 3007,
"y": 1176
},
"pos7": {
"x": 2324,
"y": 1471
},
"pos8": {
"x": 2533,
"y": 1130
},
"total_mods": 9
}
src/a0simplechannel/main.cpp
浏览文件 @
b6707208
...
...
@@ -147,6 +147,14 @@ int do_function(const cmdlineParser & args)
TASKBUS
::
push_subject
(
sub_output
,
instance
,
signal
.
size
()
*
2
,(
unsigned
char
*
)
signal
.
data
(),
&
outmtx
);
}
watM
+=
packagedta
.
size
()
/
4
;
unsigned
long
long
wmi
=
(
watM
<
0
)
?
(
long
long
)
0
:
(
unsigned
long
long
)
watM
;
if
(
sub_wm
)
TASKBUS
::
push_subject
(
sub_wm
,
instance
,
sizeof
(
qint64
),
(
unsigned
char
*
)
&
wmi
,
&
outmtx
);
}
}
...
...
@@ -210,7 +218,7 @@ std::vector<short> simplechannel(const vector<unsigned char> &packagedta)
dx16rclk
-=
32
;
}
long
long
nx16rclk
=
dx16rclk
+
.5
;
long
long
nx16rclk
=
dx16rclk
;
if
(
nx16rclk
%
16
==
0
)
//钟差带入后
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录