Giter Club home page Giter Club logo

Comments (30)

sylvek avatar sylvek commented on August 23, 2024

Hi!

what is the brand of your phone?
service ids seem correct, however i suppose that you have the same trouble that another users...
look this file, prefix uuid matches
https://github.com/sylvek/itracing2/blob/master/src/net/sylvek/itracing2/BluetoothLEService.java

from itracing2.

mofosyne avatar mofosyne commented on August 23, 2024

HTC M7 is the phone I got. Indeed, that is quite strange. Well hopefully it gives you some idea.

from itracing2.

hosek avatar hosek commented on August 23, 2024

Hi, would you mind to test this build if its working with your device?
https://drive.google.com/file/d/0B0xPH953MoR6cWFoRFIxdFhCMDA/view?usp=sharing
Thanks

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

Ok for me

Le mer. 28 oct. 2015 21:36, Roman Hosek [email protected] a écrit :

Hi, would you mind to test this build if its working with your device?

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


Reply to this email directly or view it on GitHub
#6 (comment).

from itracing2.

paskalip avatar paskalip commented on August 23, 2024

Works with mine as well, well done!

I get battery and rssi info, and I can program the single click and out of range functions. Double click doesn't work (registers as multiple singles) and the capture my position does nothing. Lastly, ringing the keyring works ok but there is no way of turning it off unless I shut it down completely (the keyring).

On another note, how difficult is to code a custom function for the keypress (like select what to execute instead of ringing the phone)

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

the delay between 2 clicks must be lesser than 300ms (my twin girls played too much with my keyring…)

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

the capture my position does nothing

depends of your phone configuration.. do you have network/gps enabled?
the code looks for a position aged of 10s max.
if not found, it requests a position … (GPS or NETWORK if enabled) and when the position is going, a notification is displayed... but if you use only GPS and you are at home for example, you will see nothing.

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

Lastly, ringing the keyring works ok but there is no way of turning it off unless I shut it down completely (the keyring).

on my iTag, the ring stops after 20sec..

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

On another note, how difficult is to code a custom function for the keypress (like select what to execute instead of ringing the phone)

it is not really hard (if you know android sdk, i simple call an intent…)
but the difficulty is more around that.. example: i would like to send an email with a custom text .. where to store this custom text to launch automatically this email?

from itracing2.

paskalip avatar paskalip commented on August 23, 2024

I'll answer going backwards

Well, if you get an option to select an app or an action, then with tasker, ifttt or a similar app you can do all sorts of things.

Ring didn't stop for 1+ minute

I'll try to fiddle a bit more with the location capture. It's strange as I didn't see it starting the gps or requesting a position (in kitkat you can't force the gps to be active in the background so every time there is a location request there is the location marker on the notification area)

Double clicks didn't register, even in less than 300ms. I just got multiple single clicks

from itracing2.

hosek avatar hosek commented on August 23, 2024

You probably have tag like mine... MLE-15 and yes, you have to turn it off to stop beeping, application send High alarm request to keyring, I thought that this could be a problem (high - endless alarm and medium - short alarm) but after changing the alarm level to Medium , it does nothing.
Sylvek's tag seems to be more sophisticated and "mature", than those chinese copies...

from itracing2.

paskalip avatar paskalip commented on August 23, 2024

Yes, that's right. Using the nRF Control (the app that sylvek suggested in the other thread for this) that discovers the services of the keyring I was able to identify the medium and high alarm. Indeed the medium did nothing but sending ether a medium or a none stops it. So instead of stopping it from the keyring why not add an extra function in the app to stop it?

from itracing2.

hosek avatar hosek commented on August 23, 2024

Yes, mutting it from the application side sounds good!

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

@paskalip yes it should be an option.. but so.. the apk of @hosek is ok for you too?
if yes, i should create a new version with his wonderful job :)

from itracing2.

paskalip avatar paskalip commented on August 23, 2024

Apart from the issues I mentioned above, yes, it works!

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

good!

from itracing2.

paskalip avatar paskalip commented on August 23, 2024

Although, it does take an awful lot of time to register the keyring. Sometimes I have to clear the app data to get it to connect again. Sometimes I need to restart the keyring 2-3 times. And sometimes it just works. But this might as well be a hardware issue (yay cheap clones)

from itracing2.

mofosyne avatar mofosyne commented on August 23, 2024

@hosek it works. I can ring the keyring, but I can't stop it from ringing (also rings for +1 mins, and to stop it you need to turn it off).

Battery info is showing.

Single button works

Double button only seen as single click


So is there any location where we can find the GATT definitions of these tags?

from itracing2.

mofosyne avatar mofosyne commented on August 23, 2024

also, I really like the idea of sending out urls or android intents (to launch apps, and perform certain actions) based on a press of a tag.

I can imagine putting one in strategic location to press as needed, e.g. empty coffee... but that is somewhat hampered by the fact you can only connect one device at a time.

Might be more useful to have an BLE beacon with button instead.

from itracing2.

paskalip avatar paskalip commented on August 23, 2024

so, location capture is indeed working, just takes a bit of time. Now that I saw it, I have a question. How on earth is useful to get a notification with my mobile's location on my mobile??? Not to mention that I get that only if my phone is in range with a bluetooth button...

from itracing2.

hosek avatar hosek commented on August 23, 2024

I never tried it, but imho this should be last location where the keyring was connected to your phone... you forgot or mute the alarm, but just see, that last time your device was connected was in the garden... so know where start searching:) Bad that MLE-16 turn itselfs off after while...
I like the case - let something with keyring at home and everytime Im near, it automatically connect to the app so I could trigger the alarm and find it... but this seems to be imposible with this chinese tag

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

also, I really like the idea of sending out urls or android intents (to launch apps, and perform certain actions) based on a press of a tag.

I can imagine putting one in strategic location to press as needed, e.g. empty coffee... but that is somewhat hampered by the fact you can only connect one device at a time.

Might be more useful to have an BLE beacon with button instead.

indeed, the IBeacon technology is better suited for this kind of thing

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

so, location capture is indeed working, just takes a bit of time. Now that I saw it, I have a question. How on earth is useful to get a notification with my mobile's location on my mobile??? Not to mention that I get that only if my phone is in range with a bluetooth button...

;) i asked me the same question… in fact, some users asked me to add this feature because they add the keyring on their bag and want to be informed if the bag is forgotten somewhere. Others let the keyring inside their cars, and it's a good way to get the park location automatically ..

You're right .. supporting several iTag is a huge feature

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

guys.. i released a new beta (containing @hosek code's but remastorized)
https://drive.google.com/file/d/0B2WJ90QJfme5SVMzZ3J6aDNqX2c/view?usp=sharing

from itracing2.

paskalip avatar paskalip commented on August 23, 2024

in fact, some users asked me to add this feature because they add the keyring on their bag and want to be informed if the bag is forgotten somewhere. Others let the keyring inside their cars, and it's a good way to get the park location automatically ..

That is a nice idea, like hosek said, but only if I get the notification when the keyring gets out of range and then if I don't accidentally dismiss the notification. It would be a nice idea, instead of just getting a notification to have the last known coordinates kept inside the app.

from itracing2.

mofosyne avatar mofosyne commented on August 23, 2024

Yea a history list of positions would be best
On 30 Oct 2015 11:00 am, "Paschalis" [email protected] wrote:

in fact, some users asked me to add this feature because they add the
keyring on their bag and want to be informed if the bag is forgotten
somewhere. Others let the keyring inside their cars, and it's a good way to
get the park location automatically ..

That is a nice idea, like hosek said, but only if I get the notification
when the keyring gets out of range and then if I don't accidentally dismiss
the notification. It would be a nice idea, instead of just getting a
notification to have the last known coordinates kept inside the app.


Reply to this email directly or view it on GitHub
#6 (comment).

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

Yes you are wright.

Le ven. 30 oct. 2015 06:12, mofosyne [email protected] a écrit :

Yea a history list of positions would be best
On 30 Oct 2015 11:00 am, "Paschalis" [email protected] wrote:

in fact, some users asked me to add this feature because they add the
keyring on their bag and want to be informed if the bag is forgotten
somewhere. Others let the keyring inside their cars, and it's a good way
to
get the park location automatically ..

That is a nice idea, like hosek said, but only if I get the notification
when the keyring gets out of range and then if I don't accidentally
dismiss
the notification. It would be a nice idea, instead of just getting a
notification to have the last known coordinates kept inside the app.


Reply to this email directly or view it on GitHub
#6 (comment).


Reply to this email directly or view it on GitHub
#6 (comment).

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

@mofosyne it is ok with my last version ? (https://drive.google.com/file/d/0B2WJ90QJfme5SVMzZ3J6aDNqX2c/view?usp=sharing)

from itracing2.

mofosyne avatar mofosyne commented on August 23, 2024

seems to work. Is there anything different in terms of features from hosek?

from itracing2.

sylvek avatar sylvek commented on August 23, 2024

@mofosyne great thks! no only a different way to write the code.

from itracing2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.