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

Increase the json string byte size for diagnostic response payloads. #374

Merged
merged 4 commits into from
Nov 7, 2016

Conversation

zacnelson
Copy link

It was originally set at 67 bytes for arbitrary reasons? 67 byte array = 32 bytes represented as ascii characters. Plus 3 for overhead or quotations?

In this case, the diagnostic response payload is limited to 255 bytes so (255 * 2)+3 = 513 needed to store the payload as a string.

When trying this on Android, I ran into a bug. Not sure if it's on the Android side or on the VI side. I'll create an issue on Android so we can track it down. So for now I'll leave this as a draft pull request.

Copy link
Member

@notsig11 notsig11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make that a #define or something to make it more obvious? I suppose it isn't really necessary but I like the readability...

@zacnelson
Copy link
Author

@notsig11 fantastic idea!

Zac Nelson added 3 commits October 3, 2016 15:50
…in full size multi-frame diagnostic responses. still need to update subcommits.
… buffer in order to get bytes out over USB.
@zacnelson zacnelson changed the title DRAFT: Increase the json string byte size for diagnostic response payloads. Increase the json string byte size for diagnostic response payloads. Oct 17, 2016
@emarsman emarsman merged commit 1287437 into next Nov 7, 2016
@emarsman emarsman deleted the json-payload-size branch November 7, 2016 19:11
kylewludwig pushed a commit that referenced this pull request Jun 23, 2017
* master:
  Can oom (#389)
  add libffi-dev to fix cffi errors
  Update fabric, ecdsa versions. Force pyparsing to 2.2.0
  Increase the json string byte size for diagnostic response payloads. (#374)
  Fixes encoder bug with overloaded call to buildMessage
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.

3 participants