Jump to content

WheelLog for Inmotion - Development


JumpMaster

Recommended Posts

Hi,

I think I can add Inmotion support to my WheelLog app.  I have a good amount of code from the Inmotion app but I'm missing some parts.  I also see there's a pin code. Does this stop any app connecting or is it only used when editing settings?

Firstly I need to know what the wheel is advertising.  I'm hoping this is very similar to the other wheels I've tested.  The following app casled "KEVTEST" will connect to a bluetoothle device and list the services and characteristics that it is advertising.  It should say "No wheel discovered" as it doesn't know what an Inmotion wheel is.  Clicking on the text will copy the output to the clipboard.  If it could be pasted to the forum I'd appreciate it.  The next step will be to capture some data from the wheel.

https://drive.google.com/file/d/0B_qIN0Xd80hCdVBCX3lZNGh0Snc/view?usp=sharing

Thanks,
Kev

Link to comment
Share on other sites

  • Replies 243
  • Created
  • Last Reply

Great

16 minutes ago, JumpMaster said:

I think I can add Inmotion support to my WheelLog app.

Great! My V8 is on it's last "leg" of delivery to my office - shall be here within couple of hours and I have KEVTEST already installed since test with SW Xtreme so I'll try to provide you with output once it's here and indeed I'll be available to perform any other tests required ;) 

Link to comment
Share on other sites

36 minutes ago, JumpMaster said:

The version of "KEVTEST" I've posted has been updated.  It requests permission and copies to clipboard when the text is clicked.  If that's useful get the newer one.

Got the new version now - so just to get the V8 here ... ;)

Link to comment
Share on other sites

25 minutes ago, HEC said:

Wheel has arrived and here is the result from KEVTES (I've just changed the MAC if that's OK?).

Hope this helps - any more questions let me know.

V8an.txt

Interesting.. The file I received states the V8 could not be detected. ?

Link to comment
Share on other sites

4 hours ago, HEC said:

That's correct / expected result as it's not yet known to WheelLog / KEVTEST.

Yep it's very good news.  The current bodge of identifying wheels by their services and characteristics can continue a little longer.  I'll add these to the KEVTEST app and it should start identifying Inmotion wheels.  Next will be subscribing to a service and characteristic and hopefully the wheel is broadcasting its metrics much like KingSong and Gotway. 

Link to comment
Share on other sites

3 minutes ago, JumpMaster said:

Yep it's very good news.  The current bodge of identifying wheels by their services and characteristics can continue a little longer.  I'll add these to the KEVTEST app and it should start identifying Inmotion wheels.  Next will be subscribing to a service and characteristic and hopefully the wheel is broadcasting its metrics much like KingSong and Gotway. 

Perfect! Many thanks! :D

Link to comment
Share on other sites

@Jason McNeil

That's great to know but there are far more worthy causes then my pockets.  There is one that I'm really thankful of though.  On December 26th last year my wife went into labour at 22 weeks and 6 days pregnant.  The earliest viability in the UK is 24 weeks but some hospitals will intervene at 23 weeks. Luckily we were in one of the hospitals that does and our twin boys were delivered at 23 weeks and 9 hours.  Henry and Archie were both healthy (apart from extreme premature which is the official term) and transferred to a specialist neonatal unit.  Unfortunately Archie passed away the following day.  Henry spent nearly 4 months in hospital but made it through unscathed and much healthier then is expected for a baby born at 23 weeks.  He hasn't been back to hospital apart from his regular checkups and has no ongoing issues.  So I'm kind of eternally in debt to the Oliver Fisher Neonatal unit who saved Henry's life on more occasions then I want to remember.  The NHS only pay for medicine and wages, everything else is paid for through donations.  We worked out that our time in the hospital would have cost over £125,000.

If anyone wants to donate directly to them or via our just giving page that would be really appreciated.

https://www.justgiving.com/fundraising/CooperFundraising
http://www.oliverfisher.org/

If anyone wants to know the full story, my wife has done a fantastic job of documenting it. Although I can't quite bring myself to read it yet.

http://miraclebabies.uk/

Link to comment
Share on other sites

@HEC

InMotion have a lot of services!  Ninebot has 3, Gotway 4, KingSong 5, and InMotion has 12!  They have the same service Gotway, Kingsong, and Ninebot use and it only contains 1 characteristic so I'm hopeful that's the one.

I've made another version of KEVTEST that will hopefully say "Found inmotion".  It would be interesting to know if this is successful on the V5 and V8.

https://drive.google.com/file/d/0B_qIN0Xd80hCUjVXWFNBZUVZbGM/view?usp=sharing

Link to comment
Share on other sites

9 hours ago, JumpMaster said:

I also see there's a pin code. Does this stop any app connecting or is it only used when editing settings?

PIN seems to be needed only first time you pair your phone with the wheel. Default PIN is "000000" and after registering as an owner you can change to another 6 digits PIN. Either way it doesn't seem to need the PIN anymore after initial pairing of the mobile device + wheel.

Link to comment
Share on other sites

Just now, HEC said:

PIN seems to be needed only first time you pair your phone with the wheel. Default PIN is "000000" and after registering as an owner you can change to another 6 digits PIN. Either way it doesn't seem to need the PIN anymore after initial pairing of the mobile device + wheel.

That makes sense and is all the security that's required.  Would be nice if all wheels did that.

Link to comment
Share on other sites

13 hours ago, HEC said:

It does indeed!

V8Ban.txt

EDIT: Please note that I've update the firmware since the last capture as well.

Awesome! So far so good.  I've updated KEVTEST to register for notifications on all known wheels. The data is then shown in the textbox in hex so some symbols maybe converted into symbols.  I've registered to two notifications on Inmotion as I can't decide which of the two is most likely to return data.

https://drive.google.com/file/d/0B_qIN0Xd80hCeUVYVXlkeFJvbEk/view?usp=sharing

Link to comment
Share on other sites

22 minutes ago, JumpMaster said:

I've updated KEVTEST to register for notifications on all known wheels. The data is then shown in the textbox in hex so some symbols maybe converted into symbols.  I've registered to two notifications on Inmotion as I can't decide which of the two is most likely to return data.

Unfortunately this version of KEVTEST is crashing with "Unfortunately, KEVTEST has stopped." error after connecting to the wheel.

Link to comment
Share on other sites

7 minutes ago, JumpMaster said:

Ok this time I've only registered for 1 notification...

Still the same error. Phone is HTC One with Android 4.4.2. I've tested the KEVTEST version from yesterday at that one still works.

Link to comment
Share on other sites

18 hours ago, JumpMaster said:

If anyone wants to donate directly to them or via our just giving page that would be really appreciated.

https://www.justgiving.com/fundraising/CooperFundraising 

http://www.oliverfisher.org/

 

Heartfelt story!! God Bless!

Link to comment
Share on other sites

11 hours ago, HEC said:

Still the same error. Phone is HTC One with Android 4.4.2. I've tested the KEVTEST version from yesterday at that one still works.

I found the mistake. I mixed up the service and characteristic id.  Should work now and subscribe to two notifications.

https://drive.google.com/file/d/0B_qIN0Xd80hCdjZLSzdtdGRDME0/view?usp=sharing

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...