This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

connect several device at the same time

Other Parts Discussed in Thread: WL1837

Hello,

I use bluetooth Platform Manager SS1BTPM.

wl1837
Bluetopia Platform Manager 4.2.1.1.1.0
Hardware Freescale i.MX6 Ultralite
Linux OS

My Low Energy application is a GAT server.

For now, only one smartphone can connect to my device.

Is it possible to connect several smartphones to my application at the same time?

(I tested with LinuxGATM_SRV sample(s), I have never been able to connect severable smartphones)


Thanks for your help

  • It should be feasible (the device support up to 10 BLE connections) although we haven't tried multiple mobile phones recently. 

    We have tested successfully a the SPPLE SERVER connected multiple clients - so you can try connecting the mobiles (although the application will not work) to this app.

    We'll need to check if there is anything that prevents multiple connections in the sample application. 

  • Hello Kobi,

    Thank you for your answer.

    The Serial Port Profil allows to send and receive data between 2 devices.

    But can I still use my BLE services and caracteristics (write/read and notification of GATT) with the SPP?

    Do you have a tutorial with the sample LinuxSPPLE_PM, please ?

    Thanks for your help

  • Yes,

    SPPLE is an implementation on top of a proprietary service. It can work in parallel with other service. Using PM, you can decide to implement the different functionalities in the same app (i.e. in the same process) or in separate apps.

    For tutorial please check the following:

    https://processors.wiki.ti.com/index.php/TI_Bluetooth_Stack_for_WL18xx_-_Demo_Guide

    https://processors.wiki.ti.com/index.php?title=WL18xx_TI_Bluetooth_Stack_SPPLE_PM_Demo_App

  • Thanks Kobi,

    There is a problem with your links :

    "This page does not exist

    The Processors Wiki was removed on January 15, 2021"

  • Thanks for documents Kobi,


    Tell me if I understood correctly :


    my goal :
    Connect 10 iOS remotes to my smart object (wl1837), in low energy technology.
    My smart object is a GAT Low Energy server.

    To make this work :
    It will be necessary to use the SPP profil but custom because the SPP profil is not a standard profil in low energy.
    This custom profil could encapsulate the GAT profil (and my services/characteristic already defined).


    But it would be necessary to create a custom low energy profil on the remotes (iOS) based on the SPP profile.


    Is that it?

    Thanks a lot for your help

  • You don't need the SPP. You can implement your service on top of Bluetopia GATT interface. 

  • I don't understand what service you are talking about.


    But my 1st problem is to connect 2 smartphones to the LinuxSPPLE_PM application.
    2 smartphones with one wl1837 (SS1BTPM 4.2)

    SPPMLE>1 1
    
    BTPM_Initialize() Success: 0.
    DEVM_RegisterEventCallback() Success: 5.
    SPPMLE>9 1
    
    DEVM_PowerOnDevice() Success: 0.
    SPPMLE>
    Device Powered On.
    SPPMLE>RegisterEventCallback
    
    Device Manager Event Callback already registered.
    Function Error.
    SPPMLE>StartAdvertising 0x3f 20
    
    
    Local Device Properties Changed.
    Device Flags: 0x80020000
    LE Scan Mode:    FALSE, 0x00000000
    LE Adv Mode:     TRUE, 0x00000014
    SPPMLE>
    LE Advertising Started.
    SPPMLE>DEVM_StartAdvertising() Success: Duration 20 seconds.
    SPPMLE>
    Local Device Properties Changed.
    Device Flags: 0x80000000
    LE Scan Mode:    FALSE, 0x00000000
    LE Adv Mode:     FALSE, 0x00000000
    SPPMLE>
    LE Advertising Stopped.
    SPPMLE>
    Remote Device Found.
    BD_ADDR:             75D5XXXXXXX
    Address Type:        Resolvable Random Address.
    Device Name:         
    LE Type:             Single Mode
    Device Flags:        0x40008000
    LE RSSI:             0
    LE Paired State :    FALSE
    LE Connect State:    TRUE
    LE Encrypt State:    FALSE
    GATT Services Known: FALSE
    SPPMLE>
    Remote Device Properties Changed.
    BD_ADDR:             75D5XXXXXXX
    Address Type:        Resolvable Random Address.
    LE Type:             Single Mode
    Device Flags:        0x40008000
    LE Connect State:    TRUE
    SPPMLE>
    Unknown Device Manager Event Received: 0x00000016, Length: 0x00000010.
    SPPMLE>
    Unknown Device Manager Event Received: 0x00000016, Length: 0x00000010.
    SPPMLE>StartAdvertising 0x3f 20
    
    
    Local Device Properties Changed.
    Device Flags: 0x80000000
    LE Scan Mode:    FALSE, 0x00000000
    LE Adv Mode:     FALSE, 0x00000000
    SPPMLE>
    LE Advertising Stopped.
    SPPMLE>DEVM_StartAdvertising() Failure: -10001, Invalid Parameter.
    Function Error.

    Is this normal? 

  • yes. 

    A BLE Peripheral (typically the accessory) can't advertise after it is connected (and can't connect to more than one Central).

    A BLE Central (typically the phone) can scan and connect to more than one peripheral. 

    You will need to use a dedicated "peripheral" app on the phones (i.e. so the phone advertise)  and use the accessory as central (scanning, not advertising).  

  • thank you for your explanation, it's very clear