-
Notifications
You must be signed in to change notification settings - Fork 4
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
Merge network overlay functions from Ryan to Master #19
Open
RyanFisk2
wants to merge
44
commits into
master
Choose a base branch
from
Ryan
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add screenshots showing the exectution of SunneeD and the overlay tester to README
Packet size test sends UDP packets between the Pi and a remote host message sizes increase from 1 to 64 chars by appending the next ascii value after each send still need to add the raspberry pi side of these tests
Add LOG_PWR option to makefile to run a tenant with battery babysitter logging Will use this to generate data for regrassion model
Test directory contains the programs that need to run on the Pi and on the Remote host The directory is broken down into which test you want to run (packet size or frequency), then has subdirectories containing the Pi code and remote host code
Finished Pi (SunneeD) side of the packet size tests Add both the Remote host and Pi side of the packet frequency test
Still working on connect, need to push unfinished so that we can reset the pi
Socket and connect in tandem register a fake socketfd with sunneed and create a real socket within the sunneed process to serve future send requests Need to fix a malloc issue with consecutive sends
There was some confusion about the use of the nng api, we had some double frees due to nng_sendmsg freeing the message after sending. If the callee frees the message after calling send, it creates this double free issue.
Need to reclone on pi to test with Jon's memory fixes
I originally hardcoded the port so we could get data logged, but since we're delayed on that I took the chance to remove the hardcoding
The voltage and current measurement functions in the bq27441 library return signed ints, however the library functions returned unsigned ints. Removed the lookup function for the dummy socket map since the dummy sockfd given back is just the index into that table, so we can use it for O(1) lookup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add socket, connect, and send overlay functions and corresponding protobuf messages
Supports IPv4 UDP sockets only (used for power logging, can extend to IPv6 and TCP if needed in the future)