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

PJON + PJON Cython + TSA #382

Open
akadlec opened this issue Jan 4, 2021 · 4 comments
Open

PJON + PJON Cython + TSA #382

akadlec opened this issue Jan 4, 2021 · 4 comments
Labels

Comments

@akadlec
Copy link

akadlec commented Jan 4, 2021

Hi @gioblu
right now i'm moving my master code to python with pjon_cython package. Everything is working fine, but with a small issue. Master is resending packets :/ It looks like when acknowledge function is enabled there is some issue with timing and master is maybe to fast? Do you have any advice?

@gioblu
Copy link
Owner

gioblu commented Jan 10, 2021

Ciao @akadlec sorry for the very late answer, I must have missed this.
If master re-transmits packets you may try setting TSA_RESPONSE_TIME_OUT to a higher value than default (that is 45000 or 45 milliseconds), that should help. In some cases a transmitter when running on real-time operative systems needs more than 45 milliseconds to be able to get the ack. I suggest you to also switch to PJON v13.0 TS which is an updated version of TSA and switch to the new version of PJON-cython.

Let me know how it goes, and sorry again for the late response.

@akadlec
Copy link
Author

akadlec commented Jan 10, 2021

Hi @gioblu, thanks for you reply. Right now I'm not able to configure timeout :/ on rpi I'm using PJON_cython and this port does not support this configuration :(

@akadlec
Copy link
Author

akadlec commented Jan 26, 2021

Hi @gioblu
So I did some other tests on my dev env. Just to be clear, my master is RPi with pjon_cython v12 using TSA and right now one slave is Uno with v12 too.

So I had still some issues with message sync or async ack a got a lot of PJON_Connection_Lost states. So I tried to change baud rate from 115200 to 38400 and result is better. Sync ack is now working without any error.

The parameter TSA_RESPONSE_TIME_OUT is set to 100000 by default in PJON_cython and can not be changed in runtime.

And also I did some tests with v13 on both sides with same results, everything is working for lower baud rate.

@gioblu
Copy link
Owner

gioblu commented Jan 28, 2021

Ciao @akadlec thank you very much for your report.
In this iteration I will work to enable quicker baud rate without errors.

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

No branches or pull requests

2 participants