本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
使用資料流程端點的公有廣播衛星 (解調和解碼)
此範例建立在使用者指南的 JPSS-1-公共廣播衛星(PBS)-評估 區段中完成的分析。
若要完成此範例,您需要假設一個案例:您想要使用資料流程端點,以解調和解碼的直接廣播資料的形式擷取HRD通訊路徑。如果您打算使用 NASA Direct Readout Labs 軟體 (RT STPS和 ) 處理資料,則此範例是很好的起點IPOPP。
通訊路徑
本節代表 規劃您的資料流程通訊路徑 入門。在此範例中,您將在 AWS CloudFormation 範本中建立兩個區段:參數和資源區段。
注意
如需 AWS CloudFormation 範本內容的詳細資訊,請參閱範本章節。
針對參數區段,您將新增下列參數。您將為這些值指定透過 AWS CloudFormation 主控台建立堆疊時的值。
Parameters: EC2Key: Description: The SSH key used to access the EC2 receiver instance. Choose any SSH key if you are not creating an EC2 receiver instance. For instructions on how to create an SSH key see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html Type: AWS::EC2::KeyPair::KeyName ConstraintDescription: must be the name of an existing EC2 KeyPair. ReceiverAMI: Description: The Ground Station DDX AMI ID you want to use. Please note that AMIs are region specific. For instructions on how to retrieve an AMI see https://docs.aws.amazon.com/ground-station/latest/ug/dataflows.ec2-configuration.html#dataflows.ec2-configuration.amis Type: AWS::EC2::Image::Id
注意
您需要建立金鑰對,並提供 Amazon EC2 EC2Key
參數的名稱。請參閱為您的 Amazon EC2執行個體建立金鑰對。
此外,建立 AWS CloudFormation 堆疊時,您需要提供正確的區域特定 AMI ID。請參閱 AWS Ground Station Amazon Machine Images (AMIs)。
剩餘的範本程式碼片段屬於範本的資源區段 AWS CloudFormation 。
Resources: # Resources that you would like to create should be placed within the resource section.
鑑於我們將單一通訊路徑交付至EC2執行個體的情況,您將擁有單一同步交付路徑。根據 同步資料交付區段,您必須使用資料流程端點應用程式設定和設定 Amazon EC2執行個體,並建立一或多個資料流程端點群組。
# The EC2 instance that will send/receive data to/from your satellite using AWS Ground Station. ReceiverInstance: Type: AWS::EC2::Instance Properties: DisableApiTermination: false IamInstanceProfile: !Ref GeneralInstanceProfile ImageId: !Ref ReceiverAMI InstanceType: m5.4xlarge KeyName: !Ref EC2Key Monitoring: true PlacementGroupName: !Ref ClusterPlacementGroup SecurityGroupIds: - Ref: InstanceSecurityGroup SubnetId: !Ref ReceiverSubnet BlockDeviceMappings: - DeviceName: /dev/xvda Ebs: VolumeType: gp2 VolumeSize: 40 Tags: - Key: Name Value: !Join [ "-" , [ "Receiver" , !Ref "AWS::StackName" ] ] UserData: Fn::Base64: | #!/bin/bash exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1 echo `date +'%F %R:%S'` "INFO: Logging Setup" >&2 GROUND_STATION_DIR="/opt/aws/groundstation" GROUND_STATION_BIN_DIR="${GROUND_STATION_DIR}/bin" STREAM_CONFIG_PATH="${GROUND_STATION_DIR}/customer_stream_config.json" echo "Creating ${STREAM_CONFIG_PATH}" cat << STREAM_CONFIG > "${STREAM_CONFIG_PATH}" { "ddx_streams": [ { "streamName": "Downlink", "maximumWanRate": 4000000000, "lanConfigDevice": "lo", "lanConfigPort": 50000, "wanConfigDevice": "eth1", "wanConfigPort": 55888, "isUplink": false } ] } STREAM_CONFIG echo "Waiting for dataflow endpoint application to start" while netstat -lnt | awk '$4 ~ /:80$/ {exit 1}'; do sleep 10; done echo "Configuring dataflow endpoint application streams" python "${GROUND_STATION_BIN_DIR}/configure_streams.py" --configFileName "${STREAM_CONFIG_PATH}" sleep 2 python "${GROUND_STATION_BIN_DIR}/save_default_config.py" exit 0
# The AWS Ground Station Dataflow Endpoint Group that defines the endpoints that AWS Ground # Station will use to send/receive data to/from your satellite. DataflowEndpointGroup: Type: AWS::GroundStation::DataflowEndpointGroup Properties: ContactPostPassDurationSeconds: 180 ContactPrePassDurationSeconds: 120 EndpointDetails: - Endpoint: Name: !Join [ "-" , [ !Ref "AWS::StackName" , "Downlink" ] ] # needs to match DataflowEndpointConfig name Address: Name: !GetAtt ReceiverInstanceNetworkInterface.PrimaryPrivateIpAddress Port: 55888 SecurityDetails: SecurityGroupIds: - Ref: "DataflowEndpointSecurityGroup" SubnetIds: - !Ref ReceiverSubnet RoleArn: !GetAtt DataDeliveryServiceRole.Arn # The security group that the ENI created by AWS Ground Station belongs to. DataflowEndpointSecurityGroup: Type: AWS::EC2::SecurityGroup Properties: GroupDescription: Security Group for AWS Ground Station registration of Dataflow Endpoint Groups VpcId: !Ref ReceiverVPC SecurityGroupEgress: - IpProtocol: udp FromPort: 55888 ToPort: 55888 CidrIp: 10.0.0.0/8 Description: "AWS Ground Station Downlink Stream To 10/8" - IpProtocol: udp FromPort: 55888 ToPort: 55888 CidrIp: 172.16.0.0/12 Description: "AWS Ground Station Downlink Stream To 172.16/12" - IpProtocol: udp FromPort: 55888 ToPort: 55888 CidrIp: 192.168.0.0/16 Description: "AWS Ground Station Downlink Stream To 192.168/16" # The placement group in which your EC2 instance is placed. ClusterPlacementGroup: Type: AWS::EC2::PlacementGroup Properties: Strategy: cluster # The security group for your EC2 instance. InstanceSecurityGroup: Type: AWS::EC2::SecurityGroup Properties: GroupDescription: AWS Ground Station receiver instance security group. VpcId: !Ref ReceiverVPC SecurityGroupIngress: # To allow SSH access to the instance, add another rule allowing tcp port 22 from your CidrIp - IpProtocol: udp FromPort: 55888 ToPort: 55888 SourceSecurityGroupId: !Ref DataflowEndpointSecurityGroup Description: "AWS Ground Station Downlink Stream" ReceiverVPC: Type: AWS::EC2::VPC Properties: CidrBlock:
"10.0.0.0/16"
Tags: - Key: "Name" Value: "AWS Ground Station - PBS to dataflow endpoint Demod Decode Example VPC" - Key: "Description" Value: "VPC for EC2 instance receiving AWS Ground Station data" ReceiverSubnet: Type: AWS::EC2::Subnet Properties: CidrBlock:"10.0.0.0/24"
Tags: - Key: "Name" Value: "AWS Ground Station - PBS to dataflow endpoint Demod Decode Example Subnet" - Key: "Description" Value: "Subnet for EC2 instance receiving AWS Ground Station data" VpcId: !Ref ReceiverVPC # An ENI providing a fixed IP address for AWS Ground Station to connect to. ReceiverInstanceNetworkInterface: Type: AWS::EC2::NetworkInterface Properties: Description: Floating network interface providing a fixed IP address for AWS Ground Station to connect to. GroupSet: - !Ref InstanceSecurityGroup SubnetId: !Ref ReceiverSubnet # Attach the ENI to the EC2 instance. ReceiverInstanceInterfaceAttachment: Type: AWS::EC2::NetworkInterfaceAttachment Properties: DeleteOnTermination: false DeviceIndex: "1" InstanceId: !Ref ReceiverInstance NetworkInterfaceId: !Ref ReceiverInstanceNetworkInterface # The instance profile for your EC2 instance. GeneralInstanceProfile: Type: AWS::IAM::InstanceProfile Properties: Roles: - !Ref InstanceRole
您也需要適當的政策、角色和設定檔, AWS Ground Station 才能允許 在帳戶中建立彈性網路介面 (ENI)。
# AWS Ground Station assumes this role to create/delete ENIs in your account in order to stream data. DataDeliveryServiceRole: Type: AWS::IAM::Role Properties: Policies: - PolicyDocument: Statement: - Action: - ec2:CreateNetworkInterface - ec2:DeleteNetworkInterface - ec2:CreateNetworkInterfacePermission - ec2:DeleteNetworkInterfacePermission - ec2:DescribeSubnets - ec2:DescribeVpcs - ec2:DescribeSecurityGroups Effect: Allow Resource: '*' Version: '2012-10-17' PolicyName: DataDeliveryServicePolicy AssumeRolePolicyDocument: Version: 2012-10-17 Statement: - Effect: Allow Principal: Service: - groundstation.amazonaws.com Action: - sts:AssumeRole # The EC2 instance assumes this role. InstanceRole: Type: AWS::IAM::Role Properties: AssumeRolePolicyDocument: Version: "2012-10-17" Statement: - Effect: "Allow" Principal: Service: - "ec2.amazonaws.com" Action: - "sts:AssumeRole" Path: "/" ManagedPolicyArns: - arn:aws:iam::aws:policy/AmazonS3ReadOnlyAccess - arn:aws:iam::aws:policy/service-role/AmazonEC2ContainerServiceforEC2Role - arn:aws:iam::aws:policy/CloudWatchAgentServerPolicy - arn:aws:iam::aws:policy/service-role/AmazonEC2RoleforSSM
AWS Ground Station 組態
本節代表 使用者指南建立組態的 。
您需要使用追蹤組態,才能在 上使用自動追蹤來設定偏好設定。選擇PREFERRED自動追蹤可以改善訊號品質,但由於有足夠的 JPSS-1 暫時性品質,因此不需要滿足訊號品質。
TrackingConfig: Type: AWS::GroundStation::Config Properties: Name: "JPSS Tracking Config" ConfigData: TrackingConfig: Autotrack: "PREFERRED"
根據通訊路徑,您需要定義代表衛星部分的antenna-downlink-demod-decode組態,以及參考定義端點詳細資訊之資料流程端點群組的資料流程端點組態。
注意
如需如何設定 DemodulationConfig
、 和 值的詳細資訊DecodeConfig
,請參閱 天線下行解調解碼組態 。
# The AWS Ground Station Antenna Downlink Config that defines the frequency spectrum used to # downlink data from your satellite. JpssDownlinkDemodDecodeAntennaConfig: Type: AWS::GroundStation::Config Properties: Name: "JPSS Downlink Demod Decode Antenna Config" ConfigData: AntennaDownlinkDemodDecodeConfig: SpectrumConfig: CenterFrequency: Value: 7812 Units: "MHz" Polarization: "RIGHT_HAND" Bandwidth: Value: 30 Units: "MHz" DemodulationConfig: UnvalidatedJSON: '{ "type":"QPSK", "qpsk":{ "carrierFrequencyRecovery":{ "centerFrequency":{ "value":7812, "units":"MHz" }, "range":{ "value":250, "units":"kHz" } }, "symbolTimingRecovery":{ "symbolRate":{ "value":15, "units":"Msps" }, "range":{ "value":0.75, "units":"ksps" }, "matchedFilter":{ "type":"ROOT_RAISED_COSINE", "rolloffFactor":0.5 } } } }' DecodeConfig: UnvalidatedJSON: '{ "edges":[ { "from":"I-Ingress", "to":"IQ-Recombiner" }, { "from":"Q-Ingress", "to":"IQ-Recombiner" }, { "from":"IQ-Recombiner", "to":"CcsdsViterbiDecoder" }, { "from":"CcsdsViterbiDecoder", "to":"NrzmDecoder" }, { "from":"NrzmDecoder", "to":"UncodedFramesEgress" } ], "nodeConfigs":{ "I-Ingress":{ "type":"CODED_SYMBOLS_INGRESS", "codedSymbolsIngress":{ "source":"I" } }, "Q-Ingress":{ "type":"CODED_SYMBOLS_INGRESS", "codedSymbolsIngress":{ "source":"Q" } }, "IQ-Recombiner":{ "type":"IQ_RECOMBINER" }, "CcsdsViterbiDecoder":{ "type":"CCSDS_171_133_VITERBI_DECODER", "ccsds171133ViterbiDecoder":{ "codeRate":"ONE_HALF" } }, "NrzmDecoder":{ "type":"NRZ_M_DECODER" }, "UncodedFramesEgress":{ "type":"UNCODED_FRAMES_EGRESS" } } }'
# The AWS Ground Station Dataflow Endpoint Config that defines the endpoint used to downlink data # from your satellite. DownlinkDemodDecodeEndpointConfig: Type: AWS::GroundStation::Config Properties: Name: "Aqua SNPP JPSS Downlink Demod Decode Endpoint Config" ConfigData: DataflowEndpointConfig: DataflowEndpointName: !Join [ "-" , [ !Ref "AWS::StackName" , "Downlink" ] ] DataflowEndpointRegion: !Ref AWS::Region
AWS Ground Station 任務描述檔
本節代表 使用者指南建立任務描述檔的 。
現在您已擁有相關聯的組態,您可以使用它們來建構資料流程。您將使用其餘參數的預設值。
# The AWS Ground Station Mission Profile that groups the above configurations to define how to # uplink and downlink data to your satellite. SnppJpssMissionProfile: Type: AWS::GroundStation::MissionProfile Properties: Name: "37849 SNPP And 43013 JPSS" ContactPrePassDurationSeconds: 120 ContactPostPassDurationSeconds: 60 MinimumViableContactDurationSeconds: 180 TrackingConfigArn: !Ref TrackingConfig DataflowEdges: - Source: !Join [ "/", [ !Ref JpssDownlinkDemodDecodeAntennaConfig, "UncodedFramesEgress" ] ] Destination: !Ref DownlinkDemodDecodeEndpointConfig
將它放在一起
透過上述資源,您現在可以從任何已加入的 排程 JPSS-1 個聯絡人,以同步交付資料 AWS Ground Station AWS Ground Station 位置。
以下是完整的 AWS CloudFormation 範本,其中包含本節所述的所有資源,合併為可以直接用於 的單一範本 AWS CloudFormation。
名為 的 AWS CloudFormation 範本AquaSnppJpss.yml
旨在讓您快速存取,以開始接收 Aqua、 SNPP和 JPSS-1/NOAA-20 衛星的資料。它包含 Amazon EC2執行個體和必要的 AWS Ground Station 資源,以排程聯絡人並接收解調和解碼的直接廣播資料。
如果 Aqua、SNPP、JPSS-1/NOAA-20 和 Terra 未加入您的帳戶,請參閱 加入衛星。
注意
您可以使用有效的 AWS 登入資料存取客戶加入 Amazon S3 儲存貯體來存取範本。以下連結使用區域 Amazon S3 儲存貯體。變更us-west-2
區域碼以代表您要建立 AWS CloudFormation 堆疊的對應區域。
此外,以下說明使用 YAML。不過, 範本同時提供 YAML和 JSON 格式。若要使用 JSON,請在下載範本.json
時將.yml
副檔名取代為 。
若要使用 下載範本 AWS CLI,請使用下列命令:
aws s3 cp s3://groundstation-cloudformation-templates-us-west-2/AquaSnppJpss.yml .
您可以在 主控台中檢視和下載範本,方法是在瀏覽器URL中導覽至下列項目:
https://s3.console.aws.amazon.com/s3/object/groundstation-cloudformation-templates-us-west-2/AquaSnppJpss.yml
您可以使用 AWS CloudFormation 以下連結直接在 中指定範本:
https://groundstation-cloudformation-templates-us-west-2.s3.us-west-2.amazonaws.com/AquaSnppJpss.yml
範本定義了哪些其他資源?
AquaSnppJpss
範本包含下列其他資源:
-
(選用) AWS Lambda CloudWatch 事件觸發 – 使用聯絡 AWS Ground Station 前後由 傳送 CloudWatch 的事件觸發的函數。 AWS Lambda 函數將啟動並選擇性地停止您的接收器執行個體。
-
(選用) EC2聯絡的驗證 - 使用 Lambda 為通知的聯絡設定 Amazon EC2執行個體驗證系統的選項 (含SNS通知)。請務必注意,這可能會產生費用,這取決於您目前的用量。
-
Ground Station Amazon Machine Image Retrieval Lambda - 選擇執行個體中安裝的軟體和AMI您選擇的 的選項。軟體選項包括
DDX 2.6.2 Only
和DDX 2.6.2 with qRadio 3.6.0
。如果您想要使用寬頻 DigIF 資料交付和 AWS Ground Station 代理程式,請參閱 使用 AWS Ground Station 代理程式 (寬頻) 的公有廣播衛星。隨著其他軟體更新和功能發佈,這些選項將繼續擴展。 -
其他任務描述檔 - 其他公有廣播衛星 (Aqua、 SNPP和 Terra) 的任務描述檔。
-
其他天線下行組態 - 其他公有廣播衛星的天線下行組態 (Aqua、 SNPP和 Terra)。
在此範本中,衛星的值和參數已經產生。這些參數可讓您立即與這些衛星 AWS Ground Station 搭配使用。您不需要設定自己的值,即可在使用此範本 AWS Ground Station 時使用 。但是,您可以自訂這些值,讓範本適用於您的使用案例。
我可以在什麼地方接收我的資料?
資料流程端點群組的設定,是使用以範本的一部分建立的接收器執行個體網路界面。接收器執行個體使用資料流程端點應用程式,從資料流程端點定義的 AWS Ground Station 連接埠接收資料串流。收到資料後,即可透過接收器執行個體的迴路轉接器上的UDP連接埠 50000 取用資料。如需設定資料流程端點群組的詳細資訊,請參閱。 AWS::GroundStation::DataflowEndpointGroup