python code for debug data lost

This commit is contained in:
YiChin2018
2019-08-08 13:09:39 +08:00
parent be85ccb830
commit 285500cd86
@@ -9,30 +9,35 @@ def main():
Guess that there are three type of data loss. In order to prove this idea,
several tests are needed
method:
compare ramp data with time stamp, there are several conditions
if data_delta * 1 / sampling rate == time_delta:
this should be packet loss
else
this should not only be packet loss but also some programming problem in headstage
'need to figure out'
this should not only be packet loss but also some programming problems in headstage
need to figure out
types of data loss:
1. packet loss:
bluetooth notification does not need any negotiation.
if there is any packet loss during the connection,
it will not be lost forever
2. program delay causes loss in client(headstage):
too many effort on data packaging, it would cause
data delay
e.g:
3. program delay causes loss in host(controller):
...todo and need to define
method to coped with the corresponding problem:
1. try 'Indication' to check data loss is reduced or not
1. try 'Indication' to check data loss is reduced or not.
2. modified the procedure of data packaging
3. after the upper two problems are excluded, this problem should be include
3. after the upper two problems are excluded, this problem should be left over
:return:
'''
@@ -48,6 +53,5 @@ def main():
delta_df.set_axis(['time_delta', 'data_delta'], axis='columns', inplace=True)
if __name__ == '__main__':
main()