Closed HiIamSultan closed 1 month ago
You can use afc-engine --help to see the list of parameters that the engine needs.
The call to the engine in src/afc-packages/afcworker/afc_worker.py:163 may also help you understand the parameters and what they need to be set to.
I have build the afc-engine but there is something missing in the config.json file. I am providing the terminal output for your kind consideration.
~ $ ./wd/afc/build/src/afc-engine/afc-engine 2024-09-04 02:26:41.212280Z TH:0x0000705346eb7bb0 Logging: Logging at level debug
2024-09-04 02:26:41.220315Z TH:0x0000705346eb7bb0 Qt: QDir::exists: Empty or null file name
2024-09-04 02:26:41.220375Z TH:0x0000705346eb7bb0 Qt: QDir::mkdir: Empty or null file name
2024-09-04 02:26:41.220480Z TH:0x0000705346eb7bb0 SearchPaths: Using config paths: //.config /etc/xdg
2024-09-04 02:26:41.220496Z TH:0x0000705346eb7bb0 SearchPaths: Using data paths: //.local/share /usr/local/share /usr/share
2024-09-04 02:26:41.220560Z TH:0x0000705346eb7bb0 main: AFC Engine is importing configuration...
2024-09-04 02:26:41.220574Z TH:0x0000705346eb7bb0 AntennaClass: AfcDataIf::readFile(configFile.json)
2024-09-04 02:26:41.220600Z TH:0x0000705346eb7bb0 AntennaClass: AfcDataIf::readFile(configFile.json) QFile.open error
2024-09-04 02:26:41.249611Z TH:0x0000705346eb7bb0 main: AFC Engine error: Failed to import configuration from GUI: AfcManager::importConfigAFCjson(): Failed to open JSON file specifying configuration parameters.
AFC Engine error: Failed to import configuration from GUI: AfcManager::importConfigAFCjson(): Failed to open JSON file specifying configuration parameters.
~ $ ls /wd/afc/build/src/afc-engine/configFile.json
/wd/afc/build/src/afc-engine/configFile.json
~ $ chmod 644 /wd/afc/build/src/afc-engine/configFile.json
~ $ ./wd/afc/build/src/afc-engine/afc-engine --config /wd/afc/build/src/afc-engine/configFile.js
on
2024-09-04 02:29:07.221236Z TH:0x0000735bd349fbb0 Logging: Logging at level debug
2024-09-04 02:29:07.232124Z TH:0x0000735bd349fbb0 Qt: QDir::exists: Empty or null file name
2024-09-04 02:29:07.232151Z TH:0x0000735bd349fbb0 Qt: QDir::mkdir: Empty or null file name
2024-09-04 02:29:07.232177Z TH:0x0000735bd349fbb0 SearchPaths: Using config paths: //.config /etc/xdg
2024-09-04 02:29:07.232185Z TH:0x0000735bd349fbb0 SearchPaths: Using data paths: //.local/share /usr/local/share /usr/share
2024-09-04 02:29:07.232209Z TH:0x0000735bd349fbb0 main: AFC Engine is importing configuration...
2024-09-04 02:29:07.232217Z TH:0x0000735bd349fbb0 AntennaClass: AfcDataIf::readFile(/wd/afc/build/src/afc-engine/configFile.json)
2024-09-04 02:29:07.232298Z TH:0x0000735bd349fbb0 AfcManager: Raw contents of input JSON file provided by the GUI: {
"afcConfig": {
"APUncertainty": {
"height": 5,
"horizontal": 30
},
"ITMParameters": {
"conductivity": 0.02,
"dielectricConst": 25,
"ground": "Good Ground",
"maxPoints": 2000,
"minSpacing": 3,
"polarization": "Vertical"
},
"antennaPattern": {
"kind": "F.1245"
},
"bodyLoss": {
"kind": "Fixed Value",
"valueIndoor": 0,
"valueOutdoor": 0
},
"buildingPenetrationLoss": {
"kind": "Fixed Value",
"value": 20.5
},
"clutterAtFS": false,
"fsReceiverNoise": {
"UNII5": -110,
"UNII7": -109.5,
"other": -109
},
"maxEIRP": 36,
"maxLinkDistance": 50,
"minEIRP": 18,
"polarizationMismatchLoss": {
"kind": "Fixed Value",
"value": 3
},
"propagationEnv": "NLCD Point",
"propagationModel": {
"buildingSource": "None",
"itmConfidence": 50,
"kind": "FCC 6GHz Report & Order",
"p2108Confidence": 50,
"terrainSource": "3DEP (30m)",
"win2Confidence": 50
},
"rasDatabase": "RASdatabase.csv",
"receiverFeederLoss": {
"UNII5": 3,
"UNII7": 2.5,
"other": 2
},
"regionStr": "CONUS",
"threshold": -6,
"ulsDatabase": "CONUS_filtered_ULS_21Jan2020_6GHz_1.1.0_fixbps_sort_1record_unii5_7.sqlite3",
"version": "3.3.10-22787"
}
}
2024-09-04 02:29:07.257613Z TH:0x0000735bd349fbb0 main: AFC Engine error: Failed to import configuration from GUI: AfcManager::importConfigAFCjson(): globeDir is missing.
AFC Engine error: Failed to import configuration from GUI: AfcManager::importConfigAFCjson(): globeDir is missing.