# Fpga
# get_calculate_swift_param req
{
"method": "fpga/get_calculate_swift_param",
"parameter": null,
"protocol": "3.5.0",
"sequence": 0,
"version": 1
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# get_calculate_swift_param res
{
"method": "fpga/get_calculate_swift_param",
"protocol": "3.5.0",
"result": {
"code": 0,
"iso_q": 0.75,
"swift_mode": ["cpf", "rpf"],
"swift_size": [524288, 1000000]
},
"sequence": 268431362,
"version": 0
}
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# calculate_swift_data req
{
"method": "fpga/calculate_swift_data",
"parameter": {
"end_freq": 1000.0,
"iso_mz_width": [10.0],
"iso_q": 0.75,
"precursor_mz": [100.0],
"start_freq": 50.0,
"swift_mode": "cpf",
"swift_size": 10000
},
"protocol": "3.5.0",
"sequence": 0,
"version": 1
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# calculate_swift_data res
{
"method": "fpga/calculate_swift_data",
"protocol": "3.5.0",
"result": {
"code": 0,
"message": "Start to Calculate SWIFT Data."
},
"sequence": 268431362,
"version": 2
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# calculate_swift_notify
01
00000010
00000020
{
"code": 0,
"method": "00020002",
"protocol": "3.5.0",
"sequence": 268431362,
"version": 2
}
01234567890
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# read_swift_data_from_fpga req
{
"method": "fpga/read_swift_data_from_fpga",
"parameter": {
"index": 1,
"length": 500
},
"protocol": "3.5.0",
"sequence": 0,
"version": 1
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
# read_swift_data_from_fpga res
{
"method": "fpga/read_swift_data_from_fpga",
"protocol": "3.5.0",
"result": {
"code": 0
},
"sequence": 11,
"version": 2
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# read_swift_data_notify
01
00000010
00000020
{
"code": 0,
"method": "00020003",
"protocol": "3.5.0",
"sequence": 11,
"version": 2
}
01234567890
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# send_swift_data_to_fpga req
写 swift
01
00000010
00000020
{
"method": "fpga/send_swift_data_to_fpga",
"parameter": {
"index": 1,
"send_last_data": false
},
"protocol": "3.5.0",
"sequence": 0,
"version": 1
}
01234567890
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# send_swift_data_to_fpga res
写 swift
{
"method": "fpga/send_swift_data_to_fpga",
"protocol": "3.5.0",
"result": {
"code": 0
},
"sequence": 11,
"version": 2
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9