Skip to content

Contribuate by reading traces

Sylvek edited this page Mar 19, 2016 · 1 revision

Something goes wrong? what may I do?

Something doesn't work, and it's a shame :(

The best way to fix an issue is to open a issue ticket on github.com

Explain what's append but please, a bad comment on the Google Play Store is not really the best choice.

First off all, the issue is a crash… don't panic, I'll receive the trace by Google. I take care and watch on it every days after a release.

If there is not a crash but something goes wrong, the best way to help me is to capture the traces.

To do that, you'll need the ANDROID SDK and call this command-line.

> $ $ANDROID_HOME/platform-tools/adb logcat | grep itracing2 

How to interprete traces?

By calling the previous command-line, you should retrieve something like that.

D/class net.sylvek.itracing2.BluetoothLEService(  550): onConnectionStateChange() address: 08:7C:BE:00:F4:2F status => 0
D/class net.sylvek.itracing2.BluetoothLEService(  550): onConnectionStateChange() address: 08:7C:BE:00:F4:2F newState => 2
D/class net.sylvek.itracing2.BluetoothLEService(  550): onServicesDiscovered()
D/class net.sylvek.itracing2.BluetoothLEService(  550): onDescriptorWrite()
D/class net.sylvek.itracing2.BluetoothLEService(  550): onCharacteristicRead()
D/class net.sylvek.itracing2.BluetoothLEService(  550): onConnectionStateChange() address: 08:7C:BE:00:F4:2F status => 19

this sequence consists of :

  • power on the iTag 08:7C:BE:00:F4:2F
  • the phone discovers it (status changes from 0 to 2)
  • the iTracing2 discovers services
  • the iTracing2 read characteristics (like percent battery, immediate alert button…) [at the moment, your iTag must be functionnal]
  • power off the bluetooth on the phone
  • the phone discovers it (status changes to 19)
D/class net.sylvek.itracing2.BluetoothLEService( 9760): onCharacteristicChanged()
D/class net.sylvek.itracing2.BluetoothLEService( 9760): onCharacteristicChanged() - simple click
D/class net.sylvek.itracing2.BluetoothLEService( 9760): onCharacteristicChanged() address: 08:7C:BE:00:F4:2F - sendBroadcast action: net.sylvek.itracing2.action.START_VIBRATE_PHONE

a single/simple click is done.

D/class net.sylvek.itracing2.BluetoothLEService( 9760): onCharacteristicChanged()
D/class net.sylvek.itracing2.BluetoothLEService( 9760): onCharacteristicChanged()
D/class net.sylvek.itracing2.BluetoothLEService( 9760): onCharacteristicChanged() - double click
D/class net.sylvek.itracing2.BluetoothLEService( 9760): onCharacteristicChanged() address: 08:7C:BE:00:F4:2F - sendBroadcast action: net.sylvek.itracing2.action.STOP_VIBRATE_PHONE

a double click is done.

Clone this wiki locally