Skip to content

Bridge: fix transfers which ignored host response #2848

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

Merged
merged 2 commits into from
Apr 2, 2015

Conversation

facchinm
Copy link
Member

Bridge.put() was broken by #2781 because it used transfer() 2-parameters overloaded version, which imply that rxlen == 0.
But the Linux Bridge responded, so the check (i >= rxlen) was true and the function timed out after retrying 50 times.

Every bridge command (python side) has been checked and now SHOULD strictly follow this rule and never ignore silently the received data

Bridge.put() was broken by arduino#2781 because it used transfer() 2-parameters overloaded version, which imply that rxlen == 0.
But the Linux Bridge responded, so the check (i >= rxlen) was true and the function timed out after retrying 50 times.

Every bridge command (python side) has been checked and now SHOULD strictly follow this rule and never ignore silently the received data
@ffissore
Copy link
Contributor

Can you also increase version in library.properties?

@ffissore
Copy link
Contributor

@ArduinoBot build this please

@cmaglie
Copy link
Member

cmaglie commented Mar 31, 2015

Please check also the Bridge::get() command: the host sends back an "unbounded" response, so it may exceed the reserved buffer.

@ffissore
Copy link
Contributor

ffissore commented Apr 1, 2015

@ArduinoBot build this please

@ffissore
Copy link
Contributor

ffissore commented Apr 1, 2015

Let's make another build since we pushed lots of fixes in the last two days

facchinm added a commit that referenced this pull request Apr 2, 2015
Bridge: fix transfers which ignored host response
@facchinm facchinm merged commit 8b01965 into arduino:master Apr 2, 2015
@facchinm facchinm deleted the testBridgePut branch January 4, 2017 15:42
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

Successfully merging this pull request may close these issues.

4 participants