Log generated with permission_artifact_breach.xml


#1

Hello everyone,
I just want to know,what is “log generated with permission artifact breach”(Test Case 5 on digital sky npnt test tool)
Which type of file format is to be uploaded.
please tell me.

thanks


#2

It should be signed flight log in json format with signature field.


#3

Thanks @satyam_amu
It solved my problem


#4

@prash

Can help me with the log format because I tried so many time but it passes only 2 cases.

this is my json log signed with RFM private key:

{
“MaximumAltitude”: 29.111,
“TimeBreach”: [
{
“Latitude”: 18.6445466,
“CRC”: 292924465,
“Altitude”: 1.023,
“Longitude”: 73.8027765,
“Time”: 1570887338120
},
{
“Latitude”: 18.6445465,
“CRC”: 1976805689,
“Altitude”: 0.422,
“Longitude”: 73.8027765,
“Time”: 1570887339123
},
{
“Latitude”: 18.6445465,
“CRC”: 3041872318,
“Altitude”: -0.005,
“Longitude”: 73.8027765,
“Time”: 1570887340125
},
{
“Latitude”: 18.6445465,
“CRC”: 3239433680,
“Altitude”: 0.006,
“Longitude”: 73.8027766,
“Time”: 1570887341126
}
],
“Signature”: “KDU3NDQ4ODc1OTY0MDkxNDM4MDEzMDMwNjkzODYzNTk2MzM5NDU1NDk5NzAyMTYwMDMwMzc4ODQ0ODAxMTEwOTY0ODA0NDE2NTM1MTg4NDM2MDMwMzI0OTQ5MDU0Nzk4MDI3NTY5MTc2MDI2NDIzMDQ2NzgzOTkyMjMwMzgxMDA3MzA2MTg0NDg0ODQyMDcwNTE0NTA0MjkzODgyMjc1OTA4NjI5Njk2ODQyMTM1NDYwNjY2NDM2Njg0ODExODMyMzA0NjA1Nzc3Nzc4MDg0OTc2MDkyMzYwNzUxMjIyMDY0NzkxMjQxMDgzNDE3Mjk5NDI2MzcxNzc5MzczNDA2ODEwNTE1MDUyOTU3NDg5Mjg5MTIwNTMyNDg1ODk1MzIyNTAwOTE4MjI2ODAyNjQzNjUxNjI1MTU0ODU3NDY4NzI2NDIyMzA0MzM2MjAwNTQwNzA4MDczNTQyMTg3OTEwNDY2NTc2NDI4MjQxNzE5NjQ4OTkzMTkxNDcwNjExNzQ4NTk0MjI4MzE4MzEwMDU0ODcxMTQwMDE1OTAwODIxMTMxNjQ4NjkwMDc1MjU1NTU1MTQ5OTE2NjQyMzk0MzI5NjQ2Njk1NzM5OTUyNjM3ODIzMDcxOTE2NjQ2NjIyMzIwMzQ0MDc5MDgxNDQ3MDczMjU1MTAwOTc1NzY4NTg0NDI4MDk0NTgyODg3MzQzNzYyNDY5Nzk2Nzg0ODQ5NDMxOTk4MjYxNzcyMzA5NTQ3NTM4NzIxODE2MjEwOTM5NDc0MDAyMDA2Mjc4OTEzNTI4NTIxMDM1NzY2MjIyNDYxODQzMjA2OTQ2MDFMLCk=”,
“Land”: {
“Latitude”: 18.6445485,
“Timestemp”: 1570887312067,
“Longitude”: 73.8027755
},
“PermissionArtefact”: “”,
“TakeOff”: {
“Latitude”: 18.6445471,
“Timestemp”: 1570884979278,
“Longitude”: 73.8027773
},
“GeofenceBreach”: [
{
“Altitude”: 23.961,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885676413,
“Longitude”: 73.8023942,
“CRC”: 2996607700,
“Latitude”: 18.644559
},
{
“Altitude”: 23.965,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885677415,
“Longitude”: 73.8023518,
“CRC”: 3647091551,
“Latitude”: 18.6445639
},
{
“Altitude”: 23.965,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885678417,
“Longitude”: 73.8023166,
“CRC”: 408218273,
“Latitude”: 18.644568
},
{
“Altitude”: 23.96,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885679419,
“Longitude”: 73.8022907,
“CRC”: 889162523,
“Latitude”: 18.6445706
},
{
“Altitude”: 23.95,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885680420,
“Longitude”: 73.802276,
“CRC”: 3830895406,
“Latitude”: 18.6445719
},
{
“Altitude”: 23.935,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885681423,
“Longitude”: 73.8022725,
“CRC”: 3292329711,
“Latitude”: 18.6445721
},
{
“Altitude”: 23.923,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885682425,
“Longitude”: 73.8022791,
“CRC”: 2068924359,
“Latitude”: 18.6445718
},
{
“Altitude”: 23.923,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885683430,
“Longitude”: 73.8022915,
“CRC”: 381514952,
“Latitude”: 18.6445712
},
{
“Altitude”: 23.923,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885684433,
“Longitude”: 73.8023101,
“CRC”: 3532661500,
“Latitude”: 18.6445705
},
{
“Altitude”: 23.925,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885685435,
“Longitude”: 73.8023361,
“CRC”: 787265677,
“Latitude”: 18.6445694
},
{
“Altitude”: 23.929,
“BreachEndTime”: 0,
“BreachStartTime”: 1570885686438,
“Longitude”: 73.8023679,
“CRC”: 4097867066,
“Latitude”: 18.6445681
},
{
“Altitude”: 23.935,
“BreachEndTime”: 1570885687441,
“BreachStartTime”: 0,
“Longitude”: 73.8024036,
“CRC”: 967439252,
“Latitude”: 18.6445666
}
],
“FlightLog”: [
{
“Altitude”: 9.987,
“Longitude”: 73.8028862,
“CRC”: 1419141671,
“Waypoint”: 1,
“Time”: 1570885019341,
“Latitude”: 18.6445534
},
{
“Altitude”: 9.985,
“Longitude”: 73.8028286,
“CRC”: 1453920365,
“Waypoint”: 2,
“Time”: 1570885053397,
“Latitude”: 18.6444592
},
{
“Altitude”: 9.976,
“Longitude”: 73.8027181,
“CRC”: 2225849584,
“Waypoint”: 3,
“Time”: 1570885248725,
“Latitude”: 18.6444969
},
{
“Altitude”: 23.947,
“Longitude”: 73.802921,
“CRC”: 1616862080,
“Waypoint”: 4,
“Time”: 1570885513162,
“Latitude”: 18.6444941
},
{
“Altitude”: 23.935,
“Longitude”: 73.8022725,
“CRC”: 2634438834,
“Waypoint”: 5,
“Time”: 1570885681423,
“Latitude”: 18.6445721
},
{
“Altitude”: 23.949,
“Longitude”: 73.8026715,
“CRC”: 2498350675,
“Waypoint”: 6,
“Time”: 1570885695455,
“Latitude”: 18.6445532
},
{
“Altitude”: 23.961,
“Longitude”: 73.8028098,
“CRC”: 500920920,
“Waypoint”: 7,
“Time”: 1570885868739,
“Latitude”: 18.6444425
},
{
“Altitude”: 23.938,
“Longitude”: 73.8027017,
“CRC”: 2402084449,
“Waypoint”: 8,
“Time”: 1570886068048,
“Latitude”: 18.6444529
},
{
“Altitude”: 23.936,
“Longitude”: 73.8028367,
“CRC”: 1226015018,
“Waypoint”: 9,
“Time”: 1570886148183,
“Latitude”: 18.6444501
}
]
}


#6

You can verify that the log signature is right using the verify_flight_log_signature method. check if it passes there


#7

Can you test with the offline tool first, to ensure you have the system working fully?


#8

Thank you so much for your help… @nihal


#9

@hiren Were you able to upload the log successfully. In our case, offline tool verifies it successfully but when uploaded on the portal, if fails. Please share details if it has worked for you.

@nihal even though there is a test_log_schema helper function , the verify_flight_log function only checks for signature match. Does the online portal have verification against the schema as well ?


#10

Currently schema verification is not implemented in the tests.


#11

Permission Artifacts generated through offline tool we are able to pass all the test cases including the breach test.
But when generated through Online tool(There is no permissionArtifactId)
and Always the Testcase 5(Breach) is failed

Can any body help


#12

@nihal The Permission Artifacts generated through online tool always the Testcase 5(Breach) is failed any possible reason. I am able to pass all tests through offline tool and also test_log_schema


#13

Hi, @chinnisuraj1984

can you please attach the log that you’re uploading for the same?


#14

@nihal

Please find attached log File Uploaded (please rename to *.json)BreachTest_LogFile.pdf (3.9 KB)


#15

@nihal any update on the LOG File


#16

Hi,

I notice that you are using the schema that is as of yet not finalized. The schema and related methods are still work in progress, and there are ongoing discussions for the same that are yet to finalize it.

The current flight log format that is being used can be seen in the example script. Can you please check once with that? Also, I’ll need the public key of the RPAS to check it from my end.


#17

@nihal
please find attached the public key of RPASpublickey.pdf (66.5 KB)

Where can i find the example script for the current flight log format


#18

@chinnisuraj1984…I have the same doubt. Please help if you have got the solution. Thank You