My little eVic project

Status
Not open for further replies.
Hi fellow eVic users!

I'm sure I'm not the only one who bought an eVic because it's such a cool gadget. Being a software developer, I just love the idea of an APV which can track my vaping and show me nice graphs and allow me to get firmware updates with new features on a somewhat regular basis.

I've had my glowstick for almost 6 months now, and in that time I've been a bit disappointed with the MVR software that comes with it. I was hoping to get even more cool information out of the eVic.

So this autumn, I started digging for information about how it works and what it would be possible to extract. I've come a long way since then. I've determined that the eVic stores a lot of useful information on every single puff you take, and this information can be used to extract even more useful statistics. For instance, I'd like to know if I vape more in the morning than in the evening, or maybe during working hours.

It didn't take long to decipher the data file that MVR uses to store the puff data, so I created a service which monitors that file and uploads the decoded information to a database. That way I can run all sorts of queries against the database to get interesting statistics.

Unfortunately, it still requires me to go through my morning routine of starting the MVR software, and downloading data from the eVic. Another 10 mouse clicks later, and I've also reset the puff counter and I'm ready to go.

This procedure is a bit annoying, so to get around it I wanted to talk to the eVic directly instead of having to go through MVR. This would also allow me to do stuff like automatically set the clock in the eVic every time I connect it so it doesn't drift, and could also be helpful when changing to and from daylight savings time.

My progress so far

This is where things gets interesting. I've managed to write a small program that connects to the eVic and reads the configuration. I've also managed to figure out what most of the configuration data means (99% or so). I should be able to read the puff data as well, even though I've not gotten around to writing the code yet. I believe I'm also able to change and write the configuration, but I don't want to attempt that just yet because I don't have a backup device on hand, and I'd hate to go without my PV if something goes wrong and I brick it :blush:

There are still some outstanding questions I need to figure out in order to make more progress, and for that I need Guinea Pigs:shock:

I only have a single eVic and that's not really a lot to base my assumptions on. So I'd like to get in touch with eVic owners who wants to help me gather information from a larger number of devices. I'm interested in as broad a variety of eVics as possible. New and old ones, many puffs, few puffs and different firmware versions as well.

I have an application that dumps the configuration of the eVic and creates a binary and a text file that I'd like you to send back to me. Unfortunately I cannot guarantee that your device will be safe, but I wouldn't post this if I thought there was a chance in hell it would break your eVic. Just want to make sure you're aware that this could be a risky adventure.

What's the purpose of all this?

I'm not really sure... Initially I was just curious about whether it could be done or not, and now that I know it can, I was thinking about maybe taking it a step further. I have this idea about creating a website where eVic owners can see their vaping records in a variety of forms. As detailed statistics as possible in all shapes and sizes. It would also make it possible to compare your own habits with those of other eVic users.

My idea is to create a client application that you install on your computer, which will dump the vape data from the eVic every time you connect it, and automatically uploads it to the website. That way you won't need to fiddle too much to always have fresh data appearing on the website. I always charge my eVic in the USB port anyway, so I wouldn't have to do anything out of the ordinary.

What are your thoughts on my little eVic project? Would you use such a website? What kind of statistics would you want to see?

Last but not least, are there any volunteers for my information gathering mission? I'd really love to have some more data to work with between Christmas and new years :D
 
I like it! I'll volunteer to be a guinea pig.

Great! I've been polishing the test application and making it ready to be used by others. I'm also putting together an installer and a simple user guide which will make it easier for everyone to collect the data I need.

I expect to have something ready later today, so stay tuned! :thumb:
 
It took a little longer than expected, but I finally have the test application packed up and ready to go. Anyone interested in trying it out can find it at eVic Communication Test application.

It's a very simple process, so it shouldn't take more than a few minutes to complete.

Hopefully the data I receive can help to confirm my assumptions about the configuration format and make it possible to proceed in my endeavor to write cool software for the eVic.
 

WarHawk-AVG

Vaping Master
ECF Veteran
Jul 27, 2013
3,370
4,398
H-Town
Just imagine if the eVic had bluetooth and/or wifi and could upload the data to an android app, then draw a nice pretty graph of your usage similar to an output from webalizer or AWStats

Don't know if you have ever seen webalizer stats graphs (and I don't know how much data is accumulated from the eVic)
webalizer-hourly-bar-graph.png
 
Just imagine if the eVic had bluetooth and/or wifi and could upload the data to an android app, then draw a nice pretty graph of your usage similar to an output from webalizer or AWStats

I agree it would be very cool to have the eVic upload data to your cellphone directly using WiFi or BT. Maybe we'll see that in a future eVic some time. Until then we're stuck with the USB interface. Unfortunately we also can't connect the eVic to the phone using a USB cable either, because they're both USB client devices.

Don't know if you have ever seen webalizer stats graphs (and I don't know how much data is accumulated from the eVic)

Yes, I know webalizer and AWStats, and it's fairly easy to create charts like that with the data from the eVic. I already have charts detailing averages on each weekday, as well as averages throughout the day (in 1 hour intervals).

The eVic captures date and time, voltage in .1V increments, resistance in .1 ohm increments and duration in .1 second increments for each puff. From the voltage and resistance values it's possible to approximate the watt setting, and throwing the duration into the equation we can get the energy in the puff. It also stores flags that tell if you're in RVV or RVW mode. I'm not sure if there's a way to distinguish between the three RVW programs. If there is, I'd be able to calculate energy for those programs as well.
 
Like I've mentioned previously all my puff data gets stored in a database so I can extract and aggregate data from there. I've been trying to find a nice (free) chart library to help me build some nice interactive charts to be able to present the data in a nice looking fashion.

The charts below are based on my own puff data, and shows the averages throughout the week. Don't recall whether it's based on duration or number of puffs tho'. It's been a while since I worked on the user interface part.

TestCharts.png
 
Sign me up, what do you need. A excel dump of my data?

There's a link in post #4 to a test application with instructions on what I need from you guys. It looks like I've screwed up the hosting at some point so it wasn't available, but that's fixed now. That would also explain why noone sent me any data so far :ohmy:
 
Status
Not open for further replies.

Users who are viewing this thread