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

Buffer missed packets #10

Open
saercnap opened this issue Dec 22, 2014 · 5 comments
Open

Buffer missed packets #10

saercnap opened this issue Dec 22, 2014 · 5 comments

Comments

@saercnap
Copy link
Contributor

It'd be nice to improve the wixel->bt->phone comms to buffer dexcom packets that are received by the wixel, but missed by the phone.

@StephenBlackWasAlreadyTaken
Copy link
Owner

You mean to store them locally on the wixel? Unfortunately it has SUPER limited space, (the pr I have up (dont use it its bad) was rough because there was not enough space for it to store all the variables, I know @LorelaiL is storing data in her bt module but has also hit a limit there (though its definitely larger than the wixel). I picked up an spi to microsd breakout but honestly I worry about the system becoming very complex to set up.

Do you know of any easy storage options?

@LoriLori
Copy link

Wixel has 4kB ram, 3kB is free. It should be much easier then what I am doing in BT chip. Just build a protocol to fetch the data.
You can find how much is free in .mem file of your wixel app directory after building it.
Name Start End Size Max
EXTERNAL RAM 0xf000 0xf492 977 3840

@StephenBlackWasAlreadyTaken
Copy link
Owner

Cool! Thanks @LorelaiL , Looks like I need to set up some getters and setters, (eww)!
Today Im hoping on having the wixel ask the phone for the transmitter id and if it should be on usb or if it can turn it off. Hopefully I can get that done!
Should make things much more accessible for everyone!

@saercnap
Copy link
Contributor Author

saercnap commented Jan 3, 2015

How about something like this:

  • Create a buffer of records to be sent to the android device (existing data + time offset)
  • Time offset is recorded as wixel uptime
  • Modify print_packet to:
  • insert packet to print into the buffer
  • use HM-1[01] protocol to check paired status
  • if unpaired, do nothing
  • if paired, loop through buffer and emit record + (wixel uptime - time offset)
  • DexDrip can be modified to take the time offset when recording entries

saercnap added a commit to saercnap/wixel-DexDrip that referenced this issue Jan 6, 2015
@brownedon
Copy link

Thanks LorelaiL, I've always wondered what caused the PSEG compile error. Big issue is the unsigned char arrays, and the PAGED EXT. RAM with a capacity of 256, which is almost fully consumed.

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

No branches or pull requests

4 participants