- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a realy crazy problem here:
My current application creates a connection to a other board. This connection is working fine.
Now I tried to create a connection to a smartphone, so the board has to switch between the roles.
I don't know where the problem is, but the following is a little bit crazy.
If I comment the line bleprofile_Init(bleprofile_p_cfg); I can connect with the smartphone and read the complete GATT-DB, the button is not working.
If I call the line bleprofile_Init(bleprofile_p_cfg); I receive the interrupts of the button, but if I connect with the smartphone, I read only one service (which is also empty). The service is "Generic Access", 0x1800.
Solved! Go to Solution.
- Labels:
-
GPIO
-
MasterSlave
-
ReadWrite Characteristics
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi j.t,
I stopped with this code-base and restarted with hello-client and a smaller Database with entries I already implemented in the code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi boont,
Thank you for your quick response, but the link won't help.
I already recreated the GATT-Database with the WICED Smart Designer.
And if I remove the call of bleprofile_Init, I can read the GATT-Database on the smartphone without any problems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you looked the generic hello_sensor.c app instead of creating the GATT-Database with the Smart Designer?
Thanks
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi j.t
I think the GATT-Database is OK, because if I remove bleprofile_Init, I get the complete Database like I created it.
But then there are no Interrupts of the button.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I checked the GATT-DB once more, but I can't find a error.
I also compared my application with the hello-client. In the create-function of the hello-client is a call for
blecen_Create() and blecen_Scan(), but no calls for bleprofile_Init and bleprofile_GPIOInit().
But it's the same. If my applicaton calls blecen_Create(), there is a very fast timer (fine-timer of blecen?) running the trace, the Interrupts are working, but I can't get the complete GATT-DB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Now I thought I'll build the application for polling at the moment,
but without the bleprofile-calls, the application won't run on our own module. It is running for some mS, but then stopps.
On the TAG-Board, the application is now running with polling of the GPIO, the smartphone can read the GATT-DB.
On our Board there is only the BCM29736S Module with some sensors and potentiometers. There is no external crystal,... connected.
The sleep/deep-sleep should be disabled, I also tried with the crystal warm up.
It's still not running.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is a good idea to follow hello_client. It is capable of connecting to a hello_sensor and allow an iPhone to connect. When iPhone is connected, it is able to retrieve database. By the way hello_client has the following code
// | this is done by blecen |
// | bleprofile_Init(bleprofile_p_cfg); |
// | bleprofile_GPIOInit(bleprofile_gpio_p_cfg); |
So it is a good idea not to call bleprofile_Init. Blecen_create is doing it for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi victorz,
I also tried to disable bleprofile_Init and bleprofile_GPIOInit and enabling blecen_Create and blecen_Scan(NO_SCAN), but the device is not visible / can't get the complete GATT-DB.
Also there is a counter running in the trace. I could also see a reboot. Here is the complete trace:
09:09:30 - 5a4a
09:09:30 - 5b4a
09:09:30 - 5c4a
09:09:30 - 5d4a
09:09:30 - 5e4a
09:09:30 - sensor_timer_callback 4
09:09:30 -
09:09:30 - 5f4a
09:09:36 - @$*create()
09:09:36 - 1.00
09:09:36 - 0018
09:09:36 - 020300002a
09:09:36 - 73656e736f72
09:09:36 - 020500012a
09:09:36 - 0000
09:09:36 - 0118
09:09:36 - 0f18
09:09:36 - 020201192a
09:09:36 - 00
09:09:36 - 45b23cb74b34457e8f1c5892c2d6cf05
09:09:36 - 0a0202390935c315d341409254479786
09:09:36 - 5cbabb
09:09:36 - 00000000
09:09:36 - 08003127010000
09:09:36 - 0a050296af077997314c7c896adc19ef
09:09:36 - ac67c5
09:09:36 - 00
09:09:36 - 04000027010000
09:09:36 - 0a0802b8c5fcd0dcf24e49b2220d5b62
09:09:36 - ed08dc
09:09:36 - 0000
09:09:36 - 06000327010000
09:09:36 - 0a0b02be8127e3a95248d3be996fee6e
09:09:36 - b9fd74
09:09:36 - 00
09:09:36 - 04000027010000
09:09:36 - 0a0e025af3d6c50e954e7dbcad7673d9
09:09:36 - 35fbe6
09:09:36 - 00000000
09:09:36 - 08003127010000
09:09:36 - 0a1102f97a8a69371d4bb69b969bf4ec
09:09:36 - ea4441
09:09:36 - 00
09:09:36 - 04000027010000
09:09:36 - 0a18
09:09:36 - 020203292a
09:09:36 - 42656d6f6e64697320476d62480000
09:09:36 - 020403242a
09:09:36 - 424c452d53656e736f720000000000
09:09:36 - 020603252a
09:09:36 - 00000000000000000000000000000000
09:09:36 - 00000000
09:09:36 - 020803272a
09:09:36 - 312e300000
09:09:36 - 020a03262a
09:09:36 - 0000000000
09:09:36 - 0018
09:09:36 - 020300002a
09:09:36 - 73656e736f72
09:09:36 - 020500012a
09:09:36 - 0000
09:09:36 - 0118
09:09:36 - 0f18
09:09:36 - 020201192a
09:09:36 - 00
09:09:36 - 45b23cb74b34457e8f1c5892c2d6cf05
09:09:36 - 0a0202390935c315d341409254479786
09:09:36 - 5cbabb
09:09:36 - 00000000
09:09:36 - 08003127010000
09:09:36 - 0a050296af077997314c7c896adc19ef
09:09:36 - ac67c5
09:09:36 - 00
09:09:36 - 04000027010000
09:09:36 - 0a0802b8c5fcd0dcf24e49b2220d5b62
09:09:36 - ed08dc
09:09:36 - 0000
09:09:36 - 06000327010000
09:09:36 - 0a0b02be8127e3a95248d3be996fee6e
09:09:36 - b9fd74
09:09:36 - 00
09:09:36 - 04000027010000
09:09:36 - 0a0e025af3d6c50e954e7dbcad7673d9
09:09:36 - 35fbe6
09:09:36 - 00000000
09:09:36 - 08003127010000
09:09:36 - 0a1102f97a8a69371d4bb69b969bf4ec
09:09:36 - ea4441
09:09:36 - 00
09:09:36 - 04000027010000
09:09:36 - 0a18
09:09:36 - 020203292a
09:09:36 - 42656d6f6e64697320476d62480000
09:09:36 - 020403242a
09:09:36 - 424c452d53656e736f720000000000
09:09:36 - 020603252a
09:09:36 - 00000000000000000000000000000000
09:09:36 - 00000000
09:09:36 - 020803272a
09:09:36 - 312e300000
09:09:36 - 020a03262a
09:09:36 - 0000000000
09:09:36 - 02010603030f18070973656e736f72
09:09:36 - 020a04
09:09:36 - 020105110745b23cb74b34457e8f1c58
09:09:36 - 92c2d6cf05020a04
09:09:36 - 070973656e736f72
09:09:36 - 01
09:09:36 - 02
09:09:36 Trace Decoding Error - Could not find line number 314
09:09:36 Handle: 0309
09:09:36 Perm : 0002
09:09:36 Len, Max Len : 0005, 0005
09:09:36 UUID : 2803
09:09:36 Attribute bytes
09:09:36 Handle: 030A
09:09:36 Trace Decoding Error - Could not find line number 244
09:09:36 Trace Decoding Error - Could not find line number 224
09:09:36 Trace Decoding Error - Could not find line number 224
09:09:36 Trace Decoding Error - Could not find line number 224
09:09:36 Trace Decoding Error - Could not find line number 224
09:09:36 Trace Decoding Error - Could not find line number 448
09:09:36 Trace Decoding Error - Could not find line number 448
09:09:36 Trace Decoding Error - Could not find line number 448
09:09:36 Trace Decoding Error - Could not find line number 448
09:09:36 Decode Error
09:09:36 Decode Error
09:09:36 Trace Decoding Error - Could not find line number 2
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 3
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 52
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 Trace Decoding Error - Could not find line number 0
09:09:36 - E50A01000000
09:09:36 NoScan
09:09:36 BLE_high_scan:timer(1)
09:09:36 Trace Decoding Error - Could not find line number 448
09:09:36 - 000007
09:09:36 - 08
09:09:36 - 09
09:09:36 - 0a
09:09:36 - 0b
09:09:36 - 0c
09:09:36 - 0d
09:09:36 - 0e
09:09:36 - 0f
09:09:36 - 10
09:09:36 - 11
09:09:36 - 12
09:09:36 - 13
09:09:36 - 14
09:09:36 - 15
09:09:36 - 16
09:09:36 - 17
09:09:36 - 18
09:09:36 - 19
09:09:36 - 1a
09:09:36 - 1b
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Matthias Ruhland,
It appears that your GATT database is not well formed..
You said you remade the GATT database with the smart designer, are you making any changes to it after it has been created?
Thanks,
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi kwang,
No, there were no changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Matthias,
Can you send us the GATT Database?
Thanks
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi j.t,
I stopped with this code-base and restarted with hello-client and a smaller Database with entries I already implemented in the code.