3 Replies Latest reply on Nov 12, 2018 8:56 PM by SheetalJ_96

    [Type1LD] How to create BLE sensor profile in Type1LD to get all sensors data in EDAMP-2BA101 ?

    CaTs_3766536

      Hi all,

      I would like to get sensor data from EDAMP-2BA101.

      https://www.elecs.co.jp/microprism/series/edamp-2ba101/

      Dose anyone have any idea how to create/add BLE profile for get sensor data from EDAMP-2BA101 ?

      I did find (wirced_sense/ hello_clinet) application.

      Could you please provide me the related information for how to create BLE profile ?

       

      Many thanks.

      Caspar

        • 1. Re: [Type1LD] How to create BLE sensor profile in Type1LD to get all sensors data in EDAMP-2BA101 ?
          WinstonF_61

          Hi Caspar,

           

          If you are looking to create a custom GATT Profile for a Combo module like Type 1LD, you can refer to the 'ble_wifi_introducer', 'wifi_onboarding' for BLE Client role & 'iot_gateway' in BLE Server role, under the apps/demo/ folder in WICED.

          • 2. Re: [Type1LD] How to create BLE sensor profile in Type1LD to get all sensors data in EDAMP-2BA101 ?
            CaTs_3766536

            Hi WinstonF_61

            Yes, I am looking to create a custom GATT Profile on Type1LD.

            'iot_gateway' is my target application, however I meet compile error message below.

             

            Did you have any idea how to include "wiced_bt_dev.h", "wiced_bt_stack.h", "bt_types.h" ?

            Did you have any idea to resolve below compile error ?

            (1) ./apps/demo/iot_gateway/gateway.h:146:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before

            (2) ./include/wiced_framework.h:64:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_app_dct'

             

            Many thanks.

            Caspar

             

            demo.iot_gateway-MurataType1LD.png

            [compile fail log]

            Compiling App_Iot_Gateway
            apps/demo/iot_gateway/wiced_bt_cfg.c:39:10: fatal error: wiced_bt_dev.h: No such file or directory
            tools/makefiles/wiced_elf.mk:232: recipe for target 'build/demo.iot_gateway-MurataType1LD/Modules/apps/demo/iot_gateway/wiced_bt_cfg.o' failed
            #include "wiced_bt_dev.h"
                      ^~~~~~~~~~~~~~~~
            compilation terminated.
            make.exe[1]: *** [build/demo.iot_gateway-MurataType1LD/Modules/apps/demo/iot_gateway/wiced_bt_cfg.o] Error 1
            make.exe[1]: *** Waiting for unfinished jobs....
            apps/demo/iot_gateway/gateway.c:108:10: fatal error: wiced_bt_stack.h: No such file or directory
            #include "wiced_bt_stack.h"
                      ^~~~~~~~~~~~~~~~~~
            compilation terminated.
            In file included from ./apps/demo/iot_gateway/gateway_dct.c:40:0:
            ./apps/demo/iot_gateway/gateway.h:146:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
            typedef PACKED struct
                            ^~~~~~
            In file included from apps/demo/iot_gateway/gateway_http.c:46:0:
            apps/demo/iot_gateway/gateway.h:146:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'
            typedef PACKED struct
                            ^~~~~~
            make.exe[1]: *** [build/demo.iot_gateway-MurataType1LD/Modules/apps/demo/iot_gateway/gateway.o] Error 1
            tools/makefiles/wiced_elf.mk:232: recipe for target 'build/demo.iot_gateway-MurataType1LD/Modules/apps/demo/iot_gateway/gateway.o' failed
            In file included from ./include/wiced.h:43:0,
                             from ./apps/demo/iot_gateway/gateway_dct.c:39:
            ./include/wiced_framework.h:64:43: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_app_dct'
            #define DEFINE_APP_DCT( type ) const type _app_dct =
                                                       ^
            ./apps/demo/iot_gateway/gateway_dct.c:45:1: note: in expansion of macro 'DEFINE_APP_DCT'
            DEFINE_APP_DCT(wifi_info_t)
            ^~~~~~~~~~~~~~
            tools/makefiles/wiced_elf.mk:334: recipe for target 'build/demo.iot_gateway-MurataType1LD/DCT.elf' failed
            make.exe[1]: *** [build/demo.iot_gateway-MurataType1LD/DCT.elf] Error 1
            In file included from apps/demo/iot_gateway/gateway_http.c:48:0:
            apps/demo/iot_gateway/httpproxy.h:41:10: fatal error: bt_types.h: No such file or directory
            #include "bt_types.h"
                      ^~~~~~~~~~~~
            compilation terminated.
            make.exe[1]: *** [build/demo.iot_gateway-MurataType1LD/Modules/apps/demo/iot_gateway/gateway_http.o] Error 1
            tools/makefiles/wiced_elf.mk:232: recipe for target 'build/demo.iot_gateway-MurataType1LD/Modules/apps/demo/iot_gateway/gateway_http.o' failed
            make: *** [main_app] Error 2
            Makefile:351: recipe for target 'main_app' failed

            15:11:39 Build Finished (took 31s.407ms)

            • 3. Re: [Type1LD] How to create BLE sensor profile in Type1LD to get all sensors data in EDAMP-2BA101 ?
              SheetalJ_96

              This issue is being tracked in Cypress SFDC case system.

              1 of 1 people found this helpful