Jump to content

Pebble App and Data Logger for King Song [RELEASED]


JumpMaster

Recommended Posts

1 hour ago, Blunzn said:

Alex Segmüller from EWheelMotion tried out the new Gotway MSuper v3 with your App. it seems that there are quite a few lag/connectivity issues with gotway and wheellog. e.g. at appx 0:30 the app hanged at 17km/h for quite some time but it seems to be more often when he tries to go over 35km/h. 

not sure if it helps you to see your app in action with a gotway. in the video hes just talking about the gotway as he borrowed the wheel & phone from someone for the testride.

https://www.facebook.com/DasElektrischeEinrad/videos/693637600786925/

 

The connectivity icon flashes show the wheel/phone has disconnected.  As a software engineer (in this project) I'm going to blame the hardware! :D

I actually have no control over the bluetooth connectivity apart from the commands connect, disconnect, and connect automatically.  It could be a problem with the phone but I'd lean towards a problem with the wheel.

Link to comment
Share on other sites

  • Replies 236
  • Created
  • Last Reply

yep my guess is hardware too as it works flawlessly with the KS16. some interferences from the MB & BT maybe as it seems to happen more often at higher speeds.

Edit: oh and maybe as future feature maybe save a csv & gpx file to google drive.

Link to comment
Share on other sites

9 hours ago, Blunzn said:

this link doesn't seem to work anymore. got myself a cheap used pebble from ebay and installed the .pbw from your github.

falling in love with your app more and more ;) :wub: 

fits nice on my wristguards too

pebblewrist.png

Ooops I seem to have unpublished the app with the last update.  I only recompiled it so it is compatible with Pebble 2.

I have a Pebble Time Steel and it also fits over my wrist guards with the strap open!

Link to comment
Share on other sites

Thank you for this awesome app and our picture with the pebble watch fixed to your wrist guards. I am thinking about doing exactly that as well (though I first will have to own a pebble watch...).  I have two questions:

1.) How did you attach the pebble watch to the wrist guards (Velcro,...) and did it ever get lost for example when riding offroad? 

2.) Is the vibration of the watch strong enough to be felt through the the wrist guards?

Link to comment
Share on other sites

1 hour ago, Gunthor said:

Thank you for this awesome app and our picture with the pebble watch fixed to your wrist guards. I am thinking about doing exactly that as well (though I first will have to own a pebble watch...).  I have two questions:

1.) How did you attach the pebble watch to the wrist guards (Velcro,...) and did it ever get lost for example when riding offroad? 

2.) Is the vibration of the watch strong enough to be felt through the the wrist guards?

1.) Velcro/hook&loop tape, there are some pretty good velcroes ... like e.g. these extra strong https://www.amazon.de/tesa-Klettband-extra-stark-50mm/dp/B000VDB4NI/ref=sr_1_2?s=diy&ie=UTF8&qid=1472938951&sr=1-2&keywords=tesa+velcro

but it should hold pretty good with standard velcro too as the backside of the pebbly classic is smooth and gives a huge 4x3cm surface.

when putting it on, just move the watch a bit left&right so that all hooks get something to hold on ... its hard to peel it off slowly and even harder to rip it off :) 

 

2.) YES you feel it definitly. vibration alarm is one of the best part of it. 30-31 km/h for vibration alarm goes fine with the beeps of the wheel when i accelerating agressive. its a big plus mentally, especially when you ride in loud streets. thanks to the app&watch i raised the wheel alarm to max. as i feel much more secure. 

 

got a used pebble classic from ebay for 55€. soon the pebble 2 (and pebble time 2) gets released so the prices may even fall more. battery is between 3 and 7 days depending how you use it and its pretty light compared to the apple and gear watches. the pebble time has a 40% bigger screen (16? colors) and a bigger battery (up to 10 days). the new pebble 2 will have a heart rate sensor and other healh crap which i dont need. all in all the pebble is not the smartest of the smartwatches but i still would recommend it if you don't need all the top notch features a big smartwach would give you. 

 

Wheellog feature suggestions for a future version:  vibration alarm depending on the battery level. @100% battery 30km/h  @50% at 25 ... and it would be great if one button of the watch could be used to switch the lights between on&off or auto&off. sometimes i really hate the light ... but then i'm always too lazy to switch it off through the app .... & a small fan icon maybe in some corner ;)

Link to comment
Share on other sites

Hi all!

I pushed 1.5.0 to the beta channel yesterday and if all is well I'll push it to production. Logs can uploaded to Google Drive into a newly created "WheelLog Logs" folder and I haven't been able to break it. I've used the same folder folder name in the Downloads folder too for consistency. FYI I really like how Google Drive handles access. An app can only access files and folders it created. When I've previously used the Dropbox API you have to give an app full access to all of your files. This is a much better approach.

Secondly I'm changing the alarms settings so there are three of them, and they are based on speed and battery percent.

The first should be set to 100℅ battery and your top speed. I then foresee the other two used as warnings at lower battery levels.

I'm thinking all 3 will use the same vibrate tone and once one has activated the other two would not, even if you went passed a higher speed alarm. This works as a max speed at different battery levels which is what I believe was been asked for.

Any other thoughts on this before I code it?

Link to comment
Share on other sites

I hve a problem with the informations on Pebble watch, speed, temperature, % of battery are not actualized.

With the application on my phone all is OK.

I start WheelLog on my Pebble, for a few seconds the informations are actualized then it freezes.

I can without problem:

  • Start/stop WheelLog from Pebble watch

  • Start/stop WheelLog from my phone

  • Use the horn from Pebble watch

Phone S7 Android 6.0.1
WheelLog on my phone 1.5
WheelLog on Pebble watch (last version I think. How verify the version?)

I try to uninstall/install WheelLog on my phone and Pebble watch without success.

The rights Position & storage are ON.

Link to comment
Share on other sites

4 hours ago, Hansolo said:

I had the 1.5 version installed but I don't see any changements for the alarm setting, I had only one speed alarm.

I do Something wrong?

I haven't made it yet.  New alarms will appear in 1.6.  I was asking users for their advice on how it should work.

1 hour ago, Hansolo said:

I hve a problem with the informations on Pebble watch, speed, temperature, % of battery are not actualized.

With the application on my phone all is OK.

I start WheelLog on my Pebble, for a few seconds the informations are actualized then it freezes.

I can without problem:

  • Start/stop WheelLog from Pebble watch

  • Start/stop WheelLog from my phone

  • Use the horn from Pebble watch

Phone S7 Android 6.0.1
WheelLog on my phone 1.5
WheelLog on Pebble watch (last version I think. How verify the version?)

I try to uninstall/install WheelLog on my phone and Pebble watch without success.

The rights Position & storage are ON.

So after a few seconds the speed/battery/etc no longer updates?  From the app does turning the watch service off and on again fix the issue?  Is it only for another few seconds?

Link to comment
Share on other sites

10 hours ago, JumpMaster said:

Secondly I'm changing the alarms settings so there are three of them, and they are based on speed and battery percent.

The first should be set to 100℅ battery and your top speed. I then foresee the other two used as warnings at lower battery levels.

I'm thinking all 3 will use the same vibrate tone and once one has activated the other two would not, even if you went passed a higher speed alarm. This works as a max speed at different battery levels which is what I believe was been asked for.

Any other thoughts on this before I code it?

Can we add current or power (A or W) in the alarms as well? Combination of speed + battery level + current / power would cover for most combinations of security warnings.

Link to comment
Share on other sites

2 hours ago, JumpMaster said:

So after a few seconds the speed/battery/etc no longer updates?  From the app does turning the watch service off and on again fix the issue?  Is it only for another few seconds?

If I turn off the watch service from the app and on again; no update on the watch.

Link to comment
Share on other sites

3 hours ago, JumpMaster said:

So after a few seconds the speed/battery/etc no longer updates?  From the app does turning the watch service off and on again fix the issue?  Is it only for another few seconds?

@Hansolo

I had the issue occur this morning.  I'm following Pebbles best practices and only sending messages once they've acknowledged the previous message was successful or unsuccessful.  I guess Pebble is not acknowledging all messages.  I'll put in a 1 second timeout after which it will continue.

Link to comment
Share on other sites

@JumpMaster

Maybe these parts of log may help to find and fix issue with suddenly incrementing time&distance counters.

Look at distance jumping from 3 to 10 km

2016-09-06 09:27:58.326 22.76 62.77 8.93 560.54 79  3.56 36 0
2016-09-06 09:27:58.849 23.34 63.53 7.06 448.52 84  3.56 36 0
2016-09-06 09:27:59.026 23.68 62.56 11.02 689.41 78  3.56 36 0
2016-09-06 09:27:59.147 23.68 62.56 11.02 689.41 78  3.56 36 0
2016-09-06 09:27:59.263 23.16 64.36 2.09 134.51 89  10.69 36 0
2016-09-06 09:27:59.297 23.16 64.36 2.09 134.51 89  10.69 36 0
2016-09-06 09:27:59.299 23.16 64.36 2.09 134.51 89  10.69 36 0

And here is another +10 km

 

2016-09-06 09:44:09.169 24.25 60.23 8.31 500.51 63  16.70 38 0
2016-09-06 09:44:09.935 24.29 60.52 7.14 432.11 65  16.70 38 0
2016-09-06 09:44:09.941 24.29 60.52 7.14 432.11 65  16.70 38 0
2016-09-06 09:44:10.382 25.34 61.10 5.00 305.50 69  26.29 39 0
2016-09-06 09:44:10.408 25.34 61.10 5.00 305.50 69  26.29 39 0
2016-09-06 09:44:10.410 25.34 61.10 5.00 305.50 69  26.29 39 0

Final distance is about 90 km and obviously wrong

Thanks in advance for making app even better.

Link to comment
Share on other sites

56 minutes ago, lozga said:

@JumpMaster

Maybe these parts of log may help to find and fix issue with suddenly incrementing time&distance counters.

Look at distance jumping from 3 to 10 km

2016-09-06 09:27:58.326 22.76 62.77 8.93 560.54 79  3.56 36 0
2016-09-06 09:27:58.849 23.34 63.53 7.06 448.52 84  3.56 36 0
2016-09-06 09:27:59.026 23.68 62.56 11.02 689.41 78  3.56 36 0
2016-09-06 09:27:59.147 23.68 62.56 11.02 689.41 78  3.56 36 0
2016-09-06 09:27:59.263 23.16 64.36 2.09 134.51 89  10.69 36 0
2016-09-06 09:27:59.297 23.16 64.36 2.09 134.51 89  10.69 36 0
2016-09-06 09:27:59.299 23.16 64.36 2.09 134.51 89  10.69 36 0

And here is another +10 km

 

2016-09-06 09:44:09.169 24.25 60.23 8.31 500.51 63  16.70 38 0
2016-09-06 09:44:09.935 24.29 60.52 7.14 432.11 65  16.70 38 0
2016-09-06 09:44:09.941 24.29 60.52 7.14 432.11 65  16.70 38 0
2016-09-06 09:44:10.382 25.34 61.10 5.00 305.50 69  26.29 39 0
2016-09-06 09:44:10.408 25.34 61.10 5.00 305.50 69  26.29 39 0
2016-09-06 09:44:10.410 25.34 61.10 5.00 305.50 69  26.29 39 0

Final distance is about 90 km and obviously wrong

Thanks in advance for making app even better.

I would guess this is using the location based logging without GPS? I have also found it to be very inaccurate but with GPS it works fairly well.  When the location is based on the cell tower it jumps very sporadically hence the jumps in distance.

Link to comment
Share on other sites

23 hours ago, HEC said:

Can we add current or power (A or W) in the alarms as well? Combination of speed + battery level + current / power would cover for most combinations of security warnings.

HI @HEC

I'm really curious about the usefulness of this.  I've only had an over-current situation happen from a standing start and it happens almost instantly without any time for a warning.  Also from looking at my graphs (from memory) current spikes are very quick and not related to speed. For example hitting a pot hole or climbing a short but steep kerb so I don't think I would be able to usefully react to an alarm.

Adding a Power Alarm with current (up to 40A), speed, and battery isn't an issue.  With a different vibrate tone too.

What speed, current, and battery level would you set the alarm to? Would you want 1 or 3 different alarms like speed? (released in version 1.5.1 last night)

Kev

Link to comment
Share on other sites

2 hours ago, JumpMaster said:

HI @HEC

I'm really curious about the usefulness of this.  I've only had an over-current situation happen from a standing start and it happens almost instantly without any time for a warning.  Also from looking at my graphs (from memory) current spikes are very quick and not related to speed. For example hitting a pot hole or climbing a short but steep kerb so I don't think I would be able to usefully react to an alarm.

Adding a Power Alarm with current (up to 40A), speed, and battery isn't an issue.  With a different vibrate tone too.

What speed, current, and battery level would you set the alarm to? Would you want 1 or 3 different alarms like speed? (released in version 1.5.1 last night)

Kev

It's hard to say until I'll be able to test it in real. I was thinking of two "real life" scenarios:

1. To have a "security" warning where based on your own estimate (weight, other ride conditions) you'll set  a "safe zone" for combination of speed, battery capacity and current / power and once out of the bounds the alarm will let you know. This would indeed require a lot of testing and tweaking from user side to make it meaningful in any way but might be nice even if it warns you about potholes and speed bumps as it can give you a better understanding where is power spiking during your rides.

2. To have an option for "eco" / extended range rides. Basically by setting some low power alarm (after a bit of research / playing around) to some specific value under which you'd like to say during cruise to decrease the overall power consumption. This might be a bit tricky though if it would be using the instant current / power use instead of some average over set period of time though ...

Either way a couple of separate alarms with speed, battery level and power (or current) would help to do some research in this areas for sure. maybe even make it so if the slide in any of the values is all the way to left it will be in off  state and it's values ignored for that specific alarm. Also I assume that all values will trigger the alarm when getting to or over the set value apart of battery level, where it will trigger at or below set value? I'm not sure if averaging of some values (mainly power / current but maybe also battery level / voltage) over configurable amount of reads would be possible as well but if yes the would help to "smooth out" some short time spikes to make alarms more meaningful for above mentioned purposes.

Link to comment
Share on other sites

@HEC

Sounds good!  I'll add an option to enable/disable "Power Alarms".  That way tests could be performed with speed set to 0 so only current and battery levels will trigger the alarm.  With the current speed alarms if speed is set to zero the alarm is disabled.

I've found an issue with the speed/battery level alarms.  As the voltage dips during normal riding the alarms go off unexpectedly.  So I need to make some kind of voltage averaging so these dips can be ignored.  I'm not sure the best approach to this.  Keep the last 20 speeds and average them or keep the last 30 seconds worth (whether that's 1 or 500) and average them.  I prefer the second (more complicated) approach.

Link to comment
Share on other sites

13 minutes ago, JumpMaster said:

@HEC

Sounds good!  I'll add an option to enable/disable "Power Alarms".  That way tests could be performed with speed set to 0 so only current and battery levels will trigger the alarm.  With the current speed alarms if speed is set to zero the alarm is disabled.

I've found an issue with the speed/battery level alarms.  As the voltage dips during normal riding the alarms go off unexpectedly.  So I need to make some kind of voltage averaging so these dips can be ignored.  I'm not sure the best approach to this.  Keep the last 20 speeds and average them or keep the last 30 seconds worth (whether that's 1 or 500) and average them.  I prefer the second (more complicated) approach.

I'd basically say to have an option to average both Voltage as well as Current (or better Power as that would be more "constant" over the period of time with dropping Voltage as current would increase). Have an option for each value over how many reading (Log entries = 100 ms?) you want to average the values. You'd need though to keep the last N+1 in memory (array) or re-read them from log (then the log feature would need to be enabled though for the value averaging function). Keep the total of last N values and display / use for alarm Total / N. After new reading is made / stored deduct the N+1 value from Total and add last value to Total. This would be faster than making total of all N values for larger N. For n in range 2 - 5 it would probably make no difference I'd say ...

Link to comment
Share on other sites

1 hour ago, HEC said:

I'd basically say to have an option to average both Voltage as well as Current (or better Power as that would be more "constant" over the period of time with dropping Voltage as current would increase). Have an option for each value over how many reading (Log entries = 100 ms?) you want to average the values. You'd need though to keep the last N+1 in memory (array) or re-read them from log (then the log feature would need to be enabled though for the value averaging function). Keep the total of last N values and display / use for alarm Total / N. After new reading is made / stored deduct the N+1 value from Total and add last value to Total. This would be faster than making total of all N values for larger N. For n in range 2 - 5 it would probably make no difference I'd say ...

https://en.wikipedia.org/wiki/Circular_buffer

 

Link to comment
Share on other sites

38 minutes ago, esaj said:

Yes - I should have used FIFO buffer term instead of "array" ;)

EDIT: I'm pretty sure there will be some ready-made library for FIFO buffers available. So basically set the buffer size to N, start stuffing it with current values and always deduct from total what it spits out and add what you're entering in and divide by N to display / use average. The question is how to handle the first N-1 average values? Maybe start with buffer of size 1 and increase it after each interval by 1 until It reaches the N size (assuming that buffer can be dynamically resized like that keeping the already entered values).

Link to comment
Share on other sites

10 hours ago, JumpMaster said:

I would guess this is using the location based logging without GPS? I have also found it to be very inaccurate but with GPS it works fairly well.  When the location is based on the cell tower it jumps very sporadically hence the jumps in distance.

"Log location" option is disabled (Use GPS for location is inactive because of that). Are you not counting distance based on wheel data? Also the ride time shown for this ride was 2 h 40 minutes with real time 1 hour.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...