XDK Portal (WLAN) and VirtualXDK (BLE)
응답
17. 1. 19 오전 10:23

Hello,

I would like to know if it's possible to combine both XDK Portal and VirtualXDK (BLE) in one project.

For this, the XDK110 need to speak WLAN and BLE at the same time.

Is it supported by the XDK, since when I install the XDK portal app, I don't see any more the BLE signal of the XDK110.

Or is there anything in the XDK portal app config that swith off the BLE signal ?

Rgds

Olivier

0 (0 투표)
RE: XDK Portal (WLAN) and VirtualXDK (BLE)
응답
17. 1. 19 오후 1:23 as a reply to Olivier SAILLARD.

Hello Olivier,

it is possible to combine both applications into one. But this combination would require some development effort.

The XDK is based on the operating system FreeRTOS which offers the possibility to run different tasks at the same time. Thus a Wi-Fi and BLE connection at the same time is possible.

Like common in embedded development you can flash an application to the device and run it afterwards. If you flash a new application the old application will be overwitten. This means the functionality of the old application (BLE in your case) does not exist any more.

Please tell me if this helps.

Kind regards,
Manuel

0 (0 투표)
RE: XDK Portal (WLAN) and VirtualXDK (BLE)
응답
17. 1. 20 오전 9:57 as a reply to Manuel Cerny.

Hello Manuel,

Thank you for your anwser.

The good news is that BLE and Wi-Fi can work at the same time :-)

I tried to combine both project in one, but I faced an issue with the function called appInitSystem about Memory Allocation.I tried to combine both appInitSystem from each project but it doesn't work.

I combined :

void appInitSystem(xTimerHandle xTimer) { /*from VXA_virtualXdkEmbedded_cc.c in  VirtualXDK project */
    (void) (xTimer);
    VXA_init();
    printf("SSU_initSystem \n");
}

and

void appInitSystem(xTimerHandle xTimer) /*from bxpInit.c in XDK portal project*/
{
    (void) (xTimer);

    /**** Turn Yellow LED on During Initialization/Configuration ****/
    PTD_pinOutSet(PTD_PORT_LED_YELLOW, PTD_PIN_LED_YELLOW);
    PTD_pinOutClear(PTD_PORT_LED_ORANGE, PTD_PIN_LED_ORANGE);
    PTD_pinOutClear(PTD_PORT_LED_RED, PTD_PIN_LED_RED);

    bisInit();
}

to

void appInitSystem(xTimerHandle xTimer)
{
    (void) (xTimer);

    /**** Turn Yellow LED on During Initialization/Configuration ****/
    PTD_pinOutSet(PTD_PORT_LED_YELLOW, PTD_PIN_LED_YELLOW);
    PTD_pinOutClear(PTD_PORT_LED_ORANGE, PTD_PIN_LED_ORANGE);
    PTD_pinOutClear(PTD_PORT_LED_RED, PTD_PIN_LED_RED);

    bisInit();

    VXA_init();
    printf("SSU_initSystem \n");
}

It's probably not that simple and I need to learn more :-)

With this kind of combined App, I could show to my friends in 10 seconds with my Smartphone what the XDK can do and at the same time I could collect the datas via the XDK portal.

Do you know if Bosch has a plan to develop such App with both VirtualXDK and XDK Portal ?

Regards

Olivier

0 (0 투표)
RE: XDK Portal (WLAN) and VirtualXDK (BLE)
응답
17. 1. 20 오후 12:14 as a reply to Olivier SAILLARD.

Hello Olivier,

For combining two applications you need to consider some important things and I guess a basic understanding about how the XDK operating system works is necessary. I would recommend to go through our beginners guides and the FreeRTOS guide of our advanced guide section first.

The function appInitSystem() will be called by the operating system of the XDK and is the starting point in every application. Combining them is definitely needed but it will require more like modifying makefile, adding interfaces and maybe splitting some functionality into different tasks.

Such an app would be really great but is not currently planned.

Please tell me if you have further questions.

Kind regards,
Manuel

0 (0 투표)
RE: XDK Portal (WLAN) and VirtualXDK (BLE)
응답
17. 1. 21 오전 10:47 as a reply to Manuel Cerny.
Thank you Manuel.
0 (0 투표)
RE: XDK Portal (WLAN) and VirtualXDK (BLE)
응답
17. 1. 23 오후 12:18 as a reply to Olivier SAILLARD.

Hello Olivier,

I am glad that I could help.
Please do not hesitate to ask if you have further questions.

Kind regards,
Manuel

0 (0 투표)