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

Merge network overlay functions from Ryan to Master #19

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open

Conversation

RyanFisk2
Copy link
Collaborator

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)

BuildTools and others added 30 commits June 4, 2021 12:38
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants