Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

machine.sleep with resume_wifi_ble=True crashes #275

Open
@Changed-Daily

Description

@Changed-Daily

Pycom board: OEM module W01.
Firmware: (sysname='WiPy', nodename='WiPy', release='1.20.0.rc7', version='v1.9.4-2833cf5 on 2019-02-08', machine='WiPy with ESP32')

Code to reproduce issue:

from network import Bluetooth
import machine
import time


bt = Bluetooth()
bt.init()

bt.set_advertisement( name="ABC", manufacturer_data="XYZ" )

bt.advertise( True )

print("Starting...")

while ( True ):

    print( "Advertising" )
    time.sleep( 5 )
    print( "Going to sleep..." )
    machine.sleep( 5000, True )

Expected output:
Starting...
Advertising
Going to sleep...
Advertising
Going to sleep...

Actual output:

Starting...
Advertising
Going to sleep...
Advertising
ASSERT_PARAM(512 0), in rwble.c at line 230

I have also tried with probably all combinations of init, deinit of Bluetooth before and after machine.sleep but the result is always the same error message.

It may be that the next release v1.20.0.rc7.1 has a workaround with:
bluetooth = Bluetooth(modem_sleep=False)

Are the binaries available for that build anywhere?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions