Android Question BLE2 manager.SetNotify

WhoIsShmoove

Active Member
Licensed User
Hello
after execution in the console I get

B4X:
Complete list of 128-bit service UUIDs: K-UNIT TPMS, FE:50:BF:EA:0F:32, RSSI = -65, (MyMap) {1=[B@13006656, 9=[B@32ddf6d7, 7=[B@b01cbc4, 0=[B@1971aaad}
LEN: 1: 06
LEN: 9: 54595245444F47
LEN: 7: 9ECADC240EE5A9E093F3A3B50100406E
LEN: 0: 020106080954595245444F4711079ECADC240EE5A9E093F3A3B50100406E0000000000000000000000000000000000000000000000000000000000000000
Discovering services.
Connected
Generic Access UUID 0X1800 : 00001800-0000-1000-8000-00805f9b34fb
Generic Attribute UUID 0X1801 : 00001801-0000-1000-8000-00805f9b34fb
Nordic UART Service : 6e400001-b5a3-f393-e0a9-e50e24dcca9e
Properties: 16
Setting descriptor. Success = true
writing descriptor: true
** Activity (main) Pause, UserClosed = false **
** Activity (main) Create, isFirst = false **
** Activity (main) Resume **

if I start and leave the demo application then start my application I get all the information i get

B4X:
Complete list of 128-bit service UUIDs: K-UNIT TPMS, FE:50:BF:EA:0F:32, RSSI = -46, (MyMap) {1=[B@c8e3670, 9=[B@37c37de9, 7=[B@19cfca6e, 0=[B@c3ae50f}
LEN: 1: 06
LEN: 9: 54595245444F47
LEN: 7: 9ECADC240EE5A9E093F3A3B50100406E
LEN: 0: 020106080954595245444F4711079ECADC240EE5A9E093F3A3B50100406E0000000000000000000000000000000000000000000000000000000000000000
Discovering services.
Connected
Generic Access UUID 0X1800 : 00001800-0000-1000-8000-00805f9b34fb
Generic Attribute UUID 0X1801 : 00001801-0000-1000-8000-00805f9b34fb
Nordic UART Service : 6e400001-b5a3-f393-e0a9-e50e24dcca9e
Properties: 16
Setting descriptor. Success = true
writing descriptor: true
Tyre(s): 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: 24413031303031393030303346373523
TyreStatus data: $A0100190003F75#
Tyre(s): 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: 24413031303030383032343344373723
TyreStatus data: $A0100080243D77#
Tyre(s): 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: 24413031303031393030303346373523
TyreStatus data: $A0100190003F75#
Tyre(s): 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: 24413031303030383032343344373723
TyreStatus data: $A0100080243D77#
Tyre(s): 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: 24413031303031393030303346373523
TyreStatus data: $A0100190003F75#
Tyre(s): 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: 24413031303030383032343344373723
TyreStatus data: $A0100080243D77#
Tyre(s): 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value: 24413031303031393030303346373523
TyreStatus data: $A0100190003F75#

is there a specific command I forgot before or after the notification to start the process in the ble2 object. would there not be a command of the type Set Start / set stop in the prealable before or after

B4X:
manager.SetNotify("6e400001-b5a3-f393-e0a9-e50e24dcca9e","6e400003-b5a3-f393-e0a9-e50e24dcca9e",True)
 

WhoIsShmoove

Active Member
Licensed User
it's good i found

first :
B4X:
manager.SetNotify("6e400001-b5a3-f393-e0a9-e50e24dcca9e","6e400003-b5a3-f393-e0a9-e50e24dcca9e",True)

and after for set auto start:
B4X:
Dim data As String = "$A0240138#"
manager.WriteData("6e400001-b5a3-f393-e0a9-e50e24dcca9e","6e400002-b5a3-f393-e0a9-e50e24dcca9e",data.GetBytes("UTF8"))

38 it checksum
 
Upvote 0

WhoIsShmoove

Active Member
Licensed User
Screenshot_2018-09-24-00-09-533.png
 
Upvote 0

peacemaker

Expert
Licensed User
HI, @WhoIsShmoove,
Can you share some code for working with nRF51 ?
How to decode the data from sensors ?
What is in Advertizing data, how to decode ?
 
Upvote 0

f0raster0

Well-Known Member
Licensed User
HI, @WhoIsShmoove,
Can you share some code for working with nRF51 ?
How to decode the data from sensors ?
What is in Advertizing data, how to decode ?
it could help

better if you start a new question
 
Upvote 0
Top