Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete Serial Connection #7

Open
FelixMau opened this issue Jan 22, 2024 · 2 comments
Open

Incomplete Serial Connection #7

FelixMau opened this issue Jan 22, 2024 · 2 comments

Comments

@FelixMau
Copy link
Collaborator

FelixMau commented Jan 22, 2024

Some communication has been incomplete when using Pyserial on RaspberryPi. Yet while using minicom everything has been complete!

To solve this issue I suggest a new approach of using Minicom to log the Data and use Python to read the log. This approach should improve data consistency to a acceptable level.

I think we should try collecting some knowlege about this issue here!


Note:
Not fixing this issue would lead to randomly missing values. This Error can be catched by some skripting but yet the data would be inconsistent making calculations on the data more complex.

@FelixMau
Copy link
Collaborator Author

FelixMau commented Jan 22, 2024

  • This issue seems to be connected to the limited buffer of 64 characters making.
  • Maybe reading two times within one (Arduino sending) iteration would solve this issue as well.
  • Another possible Soloution seems to be to implement markers for complete Packages (certain strings) helping to identify end and start of transmitting Data (like HTML)
  • Issue could also be connected to limited Power Supply from low Power USB charger
  • Reducing sent characters will also improve here and might be the quickest and safest fix here (Sending all messurements without string notices and "start" "end" protokoll like so: <1,2,3> )

@jdario26
Copy link
Collaborator

Arduino sending has been changed to 5000ms
and strings characters in serial monitor have been deleted and set in format <X,Y,Z> instead.

@FelixMau FelixMau mentioned this issue Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants