Bluetooth and wifi switching



  • Hello Folks,
    I am planning to get Wipy 3.0.
    Does this board allow concurrent wifi and bluetooth operation ?
    if not, how fast i can switch between them ?
    Thanks



  • Hi,
    As the board only has a shared WiFi / BT antenna / radio, it is not possible to use them concurrently.
    I must admit I have never tried it before, so I quickly drafted this up:

    from network import WLAN
    from network import Bluetooth
    import time
    
    wlan = WLAN()
    
    wlan.init(mode=WLAN.AP, ssid="hello world", auth=None)
    print(wlan.ifconfig(id=1))
    time.sleep(10)
    print('scanning bt')
    bt = Bluetooth()
    bt.start_scan(10)
    time.sleep(10)
    print('scandone')
    print(bt.get_adv())
    

    And connected my computer to the AP. It did temporarily lose connection, but was quickly recovered after the 10 seconds of BT scanning. I am not exactly sure of the speed you need, but if I must guess it takes as long as establishing a normal WiFi connection?
    Best


Log in to reply
 

Pycom on Twitter