Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

ロギングが途中で止まる #27

Open
Yukuro opened this issue Nov 22, 2019 · 1 comment
Open

ロギングが途中で止まる #27

Yukuro opened this issue Nov 22, 2019 · 1 comment

Comments

@Yukuro
Copy link
Member

Yukuro commented Nov 22, 2019

詳細

  • e343438 にてロギングを実装した
  • 実行してから数秒経つとSDカードへの出力が止まる
  • logfile.open()logfile.close()は時間がかるためLOG_INTERVAL_LIMITおきに実行している

  • シリアル出力
[Init]mpu6050_[SUCCESS]
[Init]bme280_[SUCCESS]
[Init]vl53l0x_[FAILED]
[Init]SDcard_[SUCCESS]
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close@�C␗e
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done@�[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done
[CNT]:0
write_done
[CNT]:1
write_done
[CNT]:2
write_done
close_done

--- exit ---
  • 保存されたログ
1[24:36:10]AC380226080,ALT-131.3447
2[24:36:10]AC387100960,ALT-131.2583
3[24:36:10]AC387252928,ALT-132.2606
1[24:36:10]AC387344192,ALT-131.2583
2[24:36:10]AC384614464,ALT-131.5565
3[24:36:10]AC381424960,ALT-131.2583
1[24:36:10]AC386804672,ALT-131.6324
2[24:36:10]AC392283520,ALT-131.5\80\D0\F2�3[24:36:10]AC385011840,ALT-131.1648
1[24:36:10]AC384560192,ALT-131.5609
2[24:36:11]AC386852128,ALT-131.5565
3[24:36:11]AC383220544,ALT-131.2583
1[24:36:11]AC386342784,ALT-131.3314
2[24:36:11]AC383566720,ALT/*�\C3.7067
3[24:36:11]AC389591616,ALT-131.1648
1[9:0:0]AC383734080,ALT246.9393
2[24:36:13]AC388812704,ALT-131.5504
3[24:36:13]AC388914752,ALT-131.3881
1[24:36:13]AC381127680,ALT-131.4596
2[24:36:13]AC383749184,ALT-131.8557
3[24:36:13]AC385489088,ALT-131.8513
1[24:36:13]AC386038208,ALT-131.5504
2[24:36:13]AC388252928,ALT-131.2258
3[24:36:13]AC384951360,ALT-131.6219
1[24:36:13]AC392047744,ALT-131.6175
2[24:36:13]AC390724736,ALT-131.5504
3[24:36:13]AC384781824,ALT-131.3881
1[24:36:13]AC380713088,ALT-131.6219
2[24:36:13]AC393055744,ALT-131.6219
3[24:36:13]AC380402240,ALT-131.1543
1[24:36:13]AC388978848,ALT-131.6934
2[24:36:13]AC387101344,ALT-131.3925
3[24:36:13]AC386080928,ALT-131.9988
1[24:36:13]AC382886592,ALT-130.9221
2[24:36:13]AC384490112,ALT-131.7694
3[24:36:13]AC381250112,ALT-131.9988
1[24:36:13]AC392463520,ALT-131.4596
2[24:36:13]AC386835328,ALT-131.3925
3[24:36:13]AC387871872,ALT-131.5267

考えられる原因

備考

  • GNSSのデータをログに含めないと動く時間が増えるのでwhileで処理を止めているのが何か関係があるかもしれない...
@Yukuro
Copy link
Member Author

Yukuro commented Nov 22, 2019

ロギング機能は無くても離床/開放判定は動くので他の作業を優先する

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant