Re: BLEMESH PB GATT

2018-02-23 Thread Aditya Xavier
Perfect got it to run..


> On 23-Feb-2018, at 6:13 PM, Andrzej Kaczmarek  
> wrote:
> 
> Hi Aditya,
> 
> Seems like you're using Mynewt 1.3.0 release and probably see issue
> fixed by following commit on master branch:
> https://github.com/apache/mynewt-core/commit/0fd8239b7f914ddae77ac396bfce288fd6bc5b5f
> 
> Please apply this change to your tree and check if this solves your problem.
> 
> Best regards,
> Andrzej
> 
> 
>> On Fri, Feb 23, 2018 at 1:17 PM, Aditya Xavier  wrote:
>> Thanks for quick reply !
>> 
>> With BLE_MESH_PB_GATT: FALSE and BLE_MESH_GATT_PROXY: FALSE, build fails for 
>> the app.
>> 
>> Error: repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c: In 
>> function 'proxy_send':
>> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:852:21: error: 
>> unused variable 'om' [-Werror=unused-variable]
>> struct os_mbuf *om;
>> ^~
>> At top level:
>> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:126:3: error: 
>> 'gatt_svc' defined but not used [-Werror=unused-variable]
>> } gatt_svc = MESH_GATT_NONE;
>>   ^~~~
>> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:95:41: error: 
>> 'proxy_adv_param' defined but not used [-Werror=unused-variable]
>> static const struct ble_gap_adv_params *proxy_adv_param = _adv_param;
>> ^~~
>> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:83:40: error: 
>> 'slow_adv_param' defined but not used [-Werror=unused-const-variable=]
>> static const struct ble_gap_adv_params slow_adv_param = {
>>^~
>> cc1: all warnings being treated as errors
>> 
>> With BLE_MESH_PB_GATT: “0” and BLE_MESH_GATT_PROXY: “0”, build is 
>> successful. However, device restarts.
>> 
>> 00 Unhandled interrupt (2), exception sp 0x20001280
>> 00  r0:0x  r1:0x  r2:0x8000  r3:0xe000ed00
>> 00  r4:0x00019a3f  r5:0x  r6:0x  r7:0x
>> 00  r8:0x  r9:0x r10:0x r11:0x
>> 00 r12:0x  lr:0x8add  pc:0x8aec psr:0x6100
>> 00 ICSR:0x00421802 HFSR:0x CFSR:0x
>> 00 BFAR:0xe000ed38 MMFAR:0xe000ed34
>> 00 Assert @ 0x19a3f
>> 
>> 
>> 
>>> On 23-Feb-2018, at 5:26 PM, Andrzej Kaczmarek 
>>>  wrote:
>>> 
>>> Hi Aditya,
>>> 
 On Fri, Feb 23, 2018 at 12:50 PM, Aditya Xavier  
 wrote:
 Hi Mynewt Team,
 
 
   I have been going through and testing the BLEMESH sample app.
 
   Turning on only one device, which does not have BLE_MESH_GATT_PROXY 
 & BLE_MESH_PB_GATT flag, still allows the Silicon Labs application to scan 
 and connect to it.
 
   Correct me if am wrong, but I thought only those devices with 
 BLE_MESH_PB_GATT should be scannable / connectable by the Silicon Labs app.
 
   Am I missing something ?
 
   For reference am using the master branch.
>>> 
>>> Did you disable GATT PB and proxy flags in your target settings? If
>>> not then these are enabled by default in Mesh package so blemesh will
>>> work with app from Silicon Labs.
>>> 
 Thanks and Regards,
 Aditya Xavier
>>> 
>>> Best regards,
>>> Andrzej
>> 


Re: BLEMESH PB GATT

2018-02-23 Thread Andrzej Kaczmarek
Hi Aditya,

Seems like you're using Mynewt 1.3.0 release and probably see issue
fixed by following commit on master branch:
https://github.com/apache/mynewt-core/commit/0fd8239b7f914ddae77ac396bfce288fd6bc5b5f

Please apply this change to your tree and check if this solves your problem.

Best regards,
Andrzej


On Fri, Feb 23, 2018 at 1:17 PM, Aditya Xavier  wrote:
> Thanks for quick reply !
>
> With BLE_MESH_PB_GATT: FALSE and BLE_MESH_GATT_PROXY: FALSE, build fails for 
> the app.
>
> Error: repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c: In function 
> 'proxy_send':
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:852:21: error: 
> unused variable 'om' [-Werror=unused-variable]
>  struct os_mbuf *om;
>  ^~
> At top level:
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:126:3: error: 
> 'gatt_svc' defined but not used [-Werror=unused-variable]
>  } gatt_svc = MESH_GATT_NONE;
>^~~~
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:95:41: error: 
> 'proxy_adv_param' defined but not used [-Werror=unused-variable]
>  static const struct ble_gap_adv_params *proxy_adv_param = _adv_param;
>  ^~~
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:83:40: error: 
> 'slow_adv_param' defined but not used [-Werror=unused-const-variable=]
>  static const struct ble_gap_adv_params slow_adv_param = {
> ^~
> cc1: all warnings being treated as errors
>
> With BLE_MESH_PB_GATT: “0” and BLE_MESH_GATT_PROXY: “0”, build is successful. 
> However, device restarts.
>
> 00 Unhandled interrupt (2), exception sp 0x20001280
> 00  r0:0x  r1:0x  r2:0x8000  r3:0xe000ed00
> 00  r4:0x00019a3f  r5:0x  r6:0x  r7:0x
> 00  r8:0x  r9:0x r10:0x r11:0x
> 00 r12:0x  lr:0x8add  pc:0x8aec psr:0x6100
> 00 ICSR:0x00421802 HFSR:0x CFSR:0x
> 00 BFAR:0xe000ed38 MMFAR:0xe000ed34
> 00 Assert @ 0x19a3f
>
>
>
>> On 23-Feb-2018, at 5:26 PM, Andrzej Kaczmarek 
>>  wrote:
>>
>> Hi Aditya,
>>
>> On Fri, Feb 23, 2018 at 12:50 PM, Aditya Xavier  wrote:
>>> Hi Mynewt Team,
>>>
>>>
>>>I have been going through and testing the BLEMESH sample app.
>>>
>>>Turning on only one device, which does not have BLE_MESH_GATT_PROXY 
>>> & BLE_MESH_PB_GATT flag, still allows the Silicon Labs application to scan 
>>> and connect to it.
>>>
>>>Correct me if am wrong, but I thought only those devices with 
>>> BLE_MESH_PB_GATT should be scannable / connectable by the Silicon Labs app.
>>>
>>>Am I missing something ?
>>>
>>>For reference am using the master branch.
>>
>> Did you disable GATT PB and proxy flags in your target settings? If
>> not then these are enabled by default in Mesh package so blemesh will
>> work with app from Silicon Labs.
>>
>>> Thanks and Regards,
>>> Aditya Xavier
>>
>> Best regards,
>> Andrzej
>


Re: BLEMESH PB GATT

2018-02-23 Thread Michał Narajowski
Hi Aditya,

Please use BLE_MESH_PB_GATT: 0 and BLE_MESH_GATT_PROXY: 0. But "0"
should work too. What other settings do you have? You can use "newt
target show " to show target settings.

Best regards,
Michał Narajowski

2018-02-23 13:17 GMT+01:00 Aditya Xavier :
> Thanks for quick reply !
>
> With BLE_MESH_PB_GATT: FALSE and BLE_MESH_GATT_PROXY: FALSE, build fails for 
> the app.
>
> Error: repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c: In function 
> 'proxy_send':
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:852:21: error: 
> unused variable 'om' [-Werror=unused-variable]
>  struct os_mbuf *om;
>  ^~
> At top level:
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:126:3: error: 
> 'gatt_svc' defined but not used [-Werror=unused-variable]
>  } gatt_svc = MESH_GATT_NONE;
>^~~~
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:95:41: error: 
> 'proxy_adv_param' defined but not used [-Werror=unused-variable]
>  static const struct ble_gap_adv_params *proxy_adv_param = _adv_param;
>  ^~~
> repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:83:40: error: 
> 'slow_adv_param' defined but not used [-Werror=unused-const-variable=]
>  static const struct ble_gap_adv_params slow_adv_param = {
> ^~
> cc1: all warnings being treated as errors
>
> With BLE_MESH_PB_GATT: “0” and BLE_MESH_GATT_PROXY: “0”, build is successful. 
> However, device restarts.
>
> 00 Unhandled interrupt (2), exception sp 0x20001280
> 00  r0:0x  r1:0x  r2:0x8000  r3:0xe000ed00
> 00  r4:0x00019a3f  r5:0x  r6:0x  r7:0x
> 00  r8:0x  r9:0x r10:0x r11:0x
> 00 r12:0x  lr:0x8add  pc:0x8aec psr:0x6100
> 00 ICSR:0x00421802 HFSR:0x CFSR:0x
> 00 BFAR:0xe000ed38 MMFAR:0xe000ed34
> 00 Assert @ 0x19a3f
>
>
>
>> On 23-Feb-2018, at 5:26 PM, Andrzej Kaczmarek 
>>  wrote:
>>
>> Hi Aditya,
>>
>> On Fri, Feb 23, 2018 at 12:50 PM, Aditya Xavier  wrote:
>>> Hi Mynewt Team,
>>>
>>>
>>>I have been going through and testing the BLEMESH sample app.
>>>
>>>Turning on only one device, which does not have BLE_MESH_GATT_PROXY 
>>> & BLE_MESH_PB_GATT flag, still allows the Silicon Labs application to scan 
>>> and connect to it.
>>>
>>>Correct me if am wrong, but I thought only those devices with 
>>> BLE_MESH_PB_GATT should be scannable / connectable by the Silicon Labs app.
>>>
>>>Am I missing something ?
>>>
>>>For reference am using the master branch.
>>
>> Did you disable GATT PB and proxy flags in your target settings? If
>> not then these are enabled by default in Mesh package so blemesh will
>> work with app from Silicon Labs.
>>
>>> Thanks and Regards,
>>> Aditya Xavier
>>
>> Best regards,
>> Andrzej
>


Re: BLEMESH PB GATT

2018-02-23 Thread Aditya Xavier
Thanks for quick reply !

With BLE_MESH_PB_GATT: FALSE and BLE_MESH_GATT_PROXY: FALSE, build fails for 
the app.

Error: repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c: In function 
'proxy_send':
repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:852:21: error: unused 
variable 'om' [-Werror=unused-variable]
 struct os_mbuf *om;
 ^~
At top level:
repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:126:3: error: 
'gatt_svc' defined but not used [-Werror=unused-variable]
 } gatt_svc = MESH_GATT_NONE;
   ^~~~
repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:95:41: error: 
'proxy_adv_param' defined but not used [-Werror=unused-variable]
 static const struct ble_gap_adv_params *proxy_adv_param = _adv_param;
 ^~~
repos/apache-mynewt-core/net/nimble/host/mesh/src/proxy.c:83:40: error: 
'slow_adv_param' defined but not used [-Werror=unused-const-variable=]
 static const struct ble_gap_adv_params slow_adv_param = {
^~
cc1: all warnings being treated as errors

With BLE_MESH_PB_GATT: “0” and BLE_MESH_GATT_PROXY: “0”, build is successful. 
However, device restarts.

00 Unhandled interrupt (2), exception sp 0x20001280
00  r0:0x  r1:0x  r2:0x8000  r3:0xe000ed00
00  r4:0x00019a3f  r5:0x  r6:0x  r7:0x
00  r8:0x  r9:0x r10:0x r11:0x
00 r12:0x  lr:0x8add  pc:0x8aec psr:0x6100
00 ICSR:0x00421802 HFSR:0x CFSR:0x
00 BFAR:0xe000ed38 MMFAR:0xe000ed34
00 Assert @ 0x19a3f



> On 23-Feb-2018, at 5:26 PM, Andrzej Kaczmarek  
> wrote:
> 
> Hi Aditya,
> 
> On Fri, Feb 23, 2018 at 12:50 PM, Aditya Xavier  wrote:
>> Hi Mynewt Team,
>> 
>> 
>>I have been going through and testing the BLEMESH sample app.
>> 
>>Turning on only one device, which does not have BLE_MESH_GATT_PROXY & 
>> BLE_MESH_PB_GATT flag, still allows the Silicon Labs application to scan and 
>> connect to it.
>> 
>>Correct me if am wrong, but I thought only those devices with 
>> BLE_MESH_PB_GATT should be scannable / connectable by the Silicon Labs app.
>> 
>>Am I missing something ?
>> 
>>For reference am using the master branch.
> 
> Did you disable GATT PB and proxy flags in your target settings? If
> not then these are enabled by default in Mesh package so blemesh will
> work with app from Silicon Labs.
> 
>> Thanks and Regards,
>> Aditya Xavier
> 
> Best regards,
> Andrzej