sylvek / itracing2

android application to use your iSee bluetooth LE keyring
GNU General Public License v2.0
211 stars 65 forks source link

Single/Double Click not working. #106

Closed miremo0 closed 2 years ago

miremo0 commented 7 years ago

I thought it was my iTag which is not working until I found out that.. It wasn't my iTag which is having an issue, I downloaded some iTag Apps where I can connect and do some functionalities with my iTag, and all other apps was working fine except this itracing2( I mean the clicking/changecharacteristics).

So how did I solved this issue? Whenever the single/double click is not working, I open the other app name cTracing, I think you know that app, then I connect my iTag, then I go back to itracing2 and magically the single/double click functions is working..

So my conclusion is that, maybe sometimes the connection is lost?(Not sure tho because I can ring the iTag, just the clicks which is not working).

I hope you can find a fix on this one, you have a great application bro, I might donate if ever this one will be solved.

Thank you!

sylvek commented 7 years ago

Hi @miremo0 thanks for your report. It seems that iTag connection is exclusive and you should not be able to use it with 2 app'. it is possible to do more tests when your iTag doesn't work? like.. take a screenshot of the device dashboard (with the circle green/red). It helps me to investigate more deeper.

Regards, Sylvain

miremo0 commented 7 years ago

image

miremo0 commented 7 years ago

Not sure tho, but I think the function sendAction has something to do. Hope we can fix it. Can't debut it well tho, sorry, I'm a newbie in android developing.

sylvek commented 7 years ago

Thks, as i can see.. your iTag is gracefully recognized.. i'll check the differents scenario that could explain that.

miremo0 commented 7 years ago

Hoping for a quick fix, thank you so much dude!

sylvek commented 7 years ago

the last version 2.4.1 fixes an issue around the double click .. maybe that fixes your issue alsoa

peaceforall commented 7 years ago

I'm also having issues registering any single or double click with this app for my iTag. Other applications (like the original iTracing app ) seem to be able to pickup single and double-click fine. Other features, such as connecting and triggering the alarm seem to be working.

This is the model of iTag I'm using: https://www.aliexpress.com/item/1pcs-Wireless-Bluetooth-4-0-Tracker-Smart-iTag-Anti-lost-Child-Bag-Wallet-Key-Finder-Child/32612094616.html

Please try to fix this when you can

sylvek commented 7 years ago

Hi if you be able to scan your itag and send the service uuid, I could check if the issue comes from it..

Le sam. 13 mai 2017 à 23:31, peaceforall notifications@github.com a écrit :

I'm also having issues registering any single or double click with this app for my iTag. Other applications (like the original iTracing app ) seem to be able to pickup single and double-click fine. Other features, such as connecting and triggering the alarm seem to be working.

This is the model of iTag I'm using: https://www.aliexpress.com/item/1pcs-Wireless-Bluetooth-4-0-Tracker-Smart-iTag-Anti-lost-Child-Bag-Wallet-Key-Finder-Child/32612094616.html

Please try to fix this when you can

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sylvek/itracing2/issues/106#issuecomment-301276049, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJ4nY0kuIiuv2LZRN2gpkD2KFDmlKCQks5r5iE2gaJpZM4NOwpc .

peaceforall commented 7 years ago

How do I do this? Please instruct and I can try and help you best I can

miremo0 commented 7 years ago

I think it's also on UUID.. can you also teach us on what to replace on the code? I mean to replace what characterchanged it detects? I use several apps to detect the UUID that comes from my iTag.

miremo0 commented 7 years ago

So I debug the app and analyze your code... The FIND_ME_SERVICE and FIND_ME_CHARACTERISTICS is the thing that should mind.

I used this app to analyze the UUID of my newly bought iTag and found out this UUID's.

image

sylvek commented 7 years ago

Hi. I think that the uuid inside itracing2 matches with yours.. So it should work. I'll do more tests this week.. Hoping that I've not included a regression in the last release.

Le dim. 14 mai 2017 à 15:00, Miremo notifications@github.com a écrit :

So I debug the app and analyze your code... The FIND_ME_SERVICE and FIND_ME_CHARACTERISTICS is the thing that should mind.

I used this app to analyze the UUID of my newly bought iTag and found out this UUID's.

[image: image] https://cloud.githubusercontent.com/assets/20988954/26033994/4c606552-38e8-11e7-922b-359765ab011e.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sylvek/itracing2/issues/106#issuecomment-301311188, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJ4nStP4R38lDltt1hRumgSn8vkT34vks5r5vrcgaJpZM4NOwpc .

miremo0 commented 7 years ago

This is the iTag that I'm having a problem: image

As you can see the UnknownService/Find_Me_Service is duplicate... Idk why..

sylvek commented 7 years ago

okay ... i took a time to read your screenshots :) it appears that your iTag does not have all features :-/ especially you don't have "immediate alert service" (00001802-0000-1000-8000-00805f9b34fb) that allows to play with single & double clicks.

services uuid are published here -> https://www.bluetooth.com/specifications/gatt/services

miremo0 commented 7 years ago

image image

It has tho.

sylvek commented 7 years ago

Ok, I'll add a debug mode inside the next release...

Le dim. 14 mai 2017 à 20:38, Miremo notifications@github.com a écrit :

[image: image] https://cloud.githubusercontent.com/assets/20988954/26036799/9124811c-3917-11e7-96cb-a5c5b8f9d159.png [image: image] https://cloud.githubusercontent.com/assets/20988954/26036800/a09d35ee-3917-11e7-9b96-51cffbb0005a.png

It has tho.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sylvek/itracing2/issues/106#issuecomment-301331246, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJ4nW6znDD9r_Jmw7VBHbgNJFdiMeU7ks5r50pBgaJpZM4NOwpc .

peaceforall commented 7 years ago

Hi sylvek, I believe I have found the cause of this issue. For some reason The keypress notifications are disabled when the device first connects. However if you send the "notifications enabled" to the device they will be enabled, and you can then receive keypresses from the tag. screenshot_19700527-165800

peaceforall commented 7 years ago

It seems that for whatever reason itracing2 is not doing this properly

sylvek commented 7 years ago

nice job, i could force to enable it. It occurs each time? (meaning, every time you power on your iTag, or every time you pair it with itracing2?)

sylvek commented 7 years ago

app-release.apk.zip

@peaceforall if you have time to test this fix.. (i wrote it totally in free style, 5min before sleeping..)

peaceforall commented 7 years ago

Unfortunately it does not fix this issue for me

Let me know if you need any more help testing I would be glad toassist

sylvek commented 7 years ago

@peaceforall thks.. may you detail step by step what you need to do to successfully interact with your iTag?

peaceforall commented 7 years ago
  1. Install app "nRF Connect" on phone ( https://play.google.com/store/apps/detailsid=no.nordicsemi.android.mcp&hl=en )

  2. Turn on the iTag, open the nRF Connect app. connect iTag to app

  3. Browse to the service with UUID 0000fffe0-0000-1000-8000-00805f9b34fb: screenshot_19700529-035706

  4. Click the icon with the 3 downward arrows: screenshot_19700529-035713

  5. Successfully use your iTag with iTracing2

peaceforall commented 7 years ago

Do you need any help diagnosing or fixing this issue? Please let me know I'd be more than glad to help

sylvek commented 7 years ago

Hey, I keep in mind to fix it but time is missing. I guess that you found the trick with your diagnostic.

Le lun. 22 mai 2017 à 06:05, peaceforall notifications@github.com a écrit :

Do you need any help diagnosing or fixing this issue? Please let me know I'd be more than glad to help

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sylvek/itracing2/issues/106#issuecomment-302994415, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJ4nRWSwptRvB6iPuAWu_IOlznQ-lihks5r8QmMgaJpZM4NOwpc .

peaceforall commented 7 years ago

Hi Sylvek, This is still not fixed. Unfortunately every time I have to turn on this iBeacon you have to enter this nrf connect app, connect to it, press this button, then connect your app to the beacon. If you turn off the iBeacon you will have to do this again. It would be a great help if you could try with this and I would be willing to pay you for your efforts

sylvek commented 7 years ago

Ok thank you for your reports very helpful. I don't have time this current days but I don't forget this issue. Your analysis is very precious. Thks again

Le mer. 7 juin 2017 à 21:25, peaceforall notifications@github.com a écrit :

Hi Sylvek, This is still not fixed. Unfortunately every time I have to turn on this iBeacon you have to enter this nrf connect app, connect to it, press this button, then connect your app to the beacon. If you turn off the iBeacon you will have to do this again. It would be a great help if you could try with this and I would be willing to pay you for your efforts

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/sylvek/itracing2/issues/106#issuecomment-306899223, or mute the thread https://github.com/notifications/unsubscribe-auth/ACJ4ncc6nDVhHcPaQUL2ssB_XRIRiDKUks5sBvkZgaJpZM4NOwpc .

peaceforall commented 7 years ago

Hi Sylvain, Why is this issue closed? It's still unresolved for me.

Please let me know I would be glad to help in any way I can

sylvek commented 7 years ago

Hi, because i merged the code.. but the code is not yet available on the playstore. please try the beta version https://play.google.com/apps/testing/net.sylvek.itracing2 and let me know if it's working :)

Sorry i'm on an huge project that take all my time :-/

jderriks commented 6 years ago

Nice discussion, I have the same problem. To make the ITAG pushbutton work write 1 to 0x2901 with NRF Connect, then close NRF connect (or it will keep the itag locked) and start Itracing2 again and make sure the checkbox is ticked to keep a lock on the tag. After turning the itag off and on again it still worked and the 2902 value says "notifications enabled".

9w2xne commented 3 years ago

hi, it seem some itag i purchased will not trigger double click. may i know how to verify this so can be helpful to improved this apps?

sylvek commented 2 years ago

hi @9w2xne , sorry for the delay..

in fact, double click is coded on iTracing2 (https://github.com/sylvek/itracing2/blob/bc82601920763b4253575fa638840c91f053cd55/app/src/main/java/net/sylvek/itracing2/BluetoothLEService.java#L201)

if you can debug itracing2 your help will be very appreciated 🙏