Search found 8 matches

by monquarter
Wed Aug 05, 2020 6:17 pm
Forum: Pyboard D-series
Topic: BLE [Errno 12] ENOMEM
Replies: 1
Views: 1057

BLE [Errno 12] ENOMEM

I have been working with the ble_temperature and ble_temperature_central examples (https://github.com/micropython/micropython/tree/master/examples/bluetooth). I have 2 PYBD-SF6W running MicroPython v1.12-652-gcaaaa2b1f , running a file on each one of them. I am running the ble_temperature_central.py...
by monquarter
Tue Jan 14, 2020 1:50 am
Forum: Pyboard D-series
Topic: BLE.config('rxbuf') not implemented?
Replies: 11
Views: 1665

Re: BLE.config('rxbuf') not implemented?

I recopied your demo files and added the code you suggested and I saw the same output as you. After reviewing, I noticed that I had changed the sleep_ms to sleep_us in the ble_temperature.py file when I first started working on the example to try and stress the ble link. It was throwing a memory err...
by monquarter
Sun Jan 12, 2020 4:33 am
Forum: Pyboard D-series
Topic: BLE.config('rxbuf') not implemented?
Replies: 11
Views: 1665

Re: BLE.config('rxbuf') not implemented?

Yes, that is the setup that I am working with. I am able to read fine, but when I put in a print statement to debug the events that are called in the _irq function, I never see 8192. def _irq(self, event, data): print(event) if event == _IRQ_SCAN_RESULT: addr_type, addr, connectable, rssi, adv_data ...
by monquarter
Sun Jan 12, 2020 4:16 am
Forum: Pyboard D-series
Topic: BLE.config('rxbuf') not implemented?
Replies: 11
Views: 1665

Re: BLE.config('rxbuf') not implemented?

I've been working through the ble_temperature_central.py example provided, which is very helpful. I have not been able to get the _IRQ_GATTC_NOTIFY event to be raised. When I connect on my phone, I am able to read the notifications. Are there any modifications that might be required for the pyboard-...
by monquarter
Sun Jan 12, 2020 12:22 am
Forum: Pyboard D-series
Topic: BLE.config('rxbuf') not implemented?
Replies: 11
Views: 1665

Re: BLE.config('rxbuf') not implemented?

Thanks so much for your help. That did it.
by monquarter
Sat Jan 11, 2020 11:33 pm
Forum: Pyboard D-series
Topic: BLE.config('rxbuf') not implemented?
Replies: 11
Views: 1665

Re: BLE.config('rxbuf') not implemented?

That makes sense, and I did try it; howeve, it still thowms me an error: MicroPython v1.12-45-gbfbd94401-dirty on 2020-01-11; PYBD-SF6W with STM32F767IIK Type "help()" for more information. >>> import ubluetooth >>> ble = ubluetooth.BLE() >>> ble.active(True) True >>> ble.config('rxbuf',1024) Traceb...
by monquarter
Sat Jan 11, 2020 11:22 pm
Forum: Pyboard D-series
Topic: BLE.config('rxbuf') not implemented?
Replies: 11
Views: 1665

Re: BLE.config('rxbuf') not implemented?

I agree that you normally wouldn't need to query the value of the rxbuf. However, when I was working through as you suggested, I received an error noting that I must query one param. MicroPython v1.12-45-gbfbd94401-dirty on 2020-01-11; PYBD-SF6W with STM32F767IIK Type "help()" for more information. ...
by monquarter
Sat Jan 11, 2020 4:53 pm
Forum: Pyboard D-series
Topic: BLE.config('rxbuf') not implemented?
Replies: 11
Views: 1665

BLE.config('rxbuf') not implemented?

I am working through some bluetooth examples from the documentation on the PYB-SF6W. It appears that the 'rxbuf' configuration does not yet appear to work, or perhaps I am calling it wrong? MicroPython v1.12-43-g54a2584de-dirty on 2020-01-07; PYBD-SF6W with STM32F767IIK Type "help()" for more inform...