Search found 19 matches

by incognico
Tue Jun 23, 2020 3:02 am
Forum: Pyboard D-series
Topic: How to wake on TAMP1 (PC13)..?
Replies: 5
Views: 409

Re: How to wake on TAMP1 (PC13)..?

Hi Peter, Sorry I thought I replied to this at the time but clearly I imagined it. I haven't tried the other features/modes of the upower library sorry. I hope to get the opportunity to give it a thorough run through at some stage but there always seems to be something urgent requiring attention fir...
by incognico
Mon Jun 15, 2020 3:17 am
Forum: Pyboard D-series
Topic: How to wake on TAMP1 (PC13)..?
Replies: 5
Views: 409

Re: How to wake on TAMP1 (PC13)..?

Just a couple of small things by the looks of it - An oldie but a goodie :) >>> import upower Traceback (most recent call last): File "<stdin>", line 1, in <module> File "upower.py", line 20, in <module> AttributeError: type object 'board' has no attribute 'USB_VBUS' Looks like X18 is removed from t...
by incognico
Fri Jun 12, 2020 6:29 am
Forum: Pyboard D-series
Topic: How to wake on TAMP1 (PC13)..?
Replies: 5
Views: 409

Re: How to wake on TAMP1 (PC13)..?

Well, a bucket of coffee this morning and a fresh look and it was just me being stupid. Couple of registers have changed names that I managed to miss several times through... I was looking for something far more complicated and missed the simple stuff :lol: For example, to make Peter's upower librar...
by incognico
Thu Jun 11, 2020 8:57 am
Forum: Pyboard D-series
Topic: PYBD WBUS connector
Replies: 22
Views: 3275

Re: PYBD WBUS connector

I started to have some unpredictable behaviour with my custom PYBD carrier board, and discovered that I needed a little finger pressure on the PYBD to get consistent electrical contact through all the pins of these connectors (this is a professionally manufactured board, not a home solder job). It h...
by incognico
Thu Jun 11, 2020 8:28 am
Forum: Pyboard D-series
Topic: How to wake on TAMP1 (PC13)..?
Replies: 5
Views: 409

How to wake on TAMP1 (PC13)..?

Hi all,

Anyone with working code to wake a PYBD from Standby using PC13? I have been hacking at this on and off for a while, but I'm clearly missing something in the 1954-page datasheet :?

Appreciate any insight!

Cheers,

--Nick
by incognico
Thu Apr 16, 2020 1:37 am
Forum: Pyboard D-series
Topic: BLE fails to init sometimes
Replies: 7
Views: 710

Re: BLE fails to init sometimes

Yep, that's all correct, including the active(False).

And now you can see why I was asking about the beaconing in standby :D
by incognico
Wed Apr 15, 2020 8:09 am
Forum: Pyboard D-series
Topic: BLE fails to init sometimes
Replies: 7
Views: 710

Re: BLE fails to init sometimes

I've had it starting (RTC alarm) every 20 seconds from standby(). It beacons the battery percentage (LiFePO4 fuel gauge, i2c) for 1 second then drops into standby() and the process repeats. The 20-second period is short but I wanted to make sure this was robust and also so I could see the battery be...
by incognico
Tue Apr 14, 2020 7:59 am
Forum: Pyboard D-series
Topic: BLE fails to init sometimes
Replies: 7
Views: 710

Re: BLE fails to init sometimes

Sorry, I'm not using WiFi in the project so can't comment on that just yet.

MicroPython v1.12 on 2019-12-20; PYBD-SF6W with STM32F767IIK

In case it's relevant: I have the eMMC installed but not yet powered up during BLE object creation.
by incognico
Thu Apr 09, 2020 4:07 am
Forum: Pyboard D-series
Topic: BLE fails to init sometimes
Replies: 7
Views: 710

BLE fails to init sometimes

Hi all,

I am seeing some occasional issues instantiating BLE:

unknown response: 0e 04 01 4c
fail3 0e


Then setting active(1) [or 0] hangs. A CTRL-C breaks out to the REPL.

Is there some way to validate the object creation? The object is of the type <BLE> even when this happens :(

--Nick
by incognico
Thu Apr 02, 2020 1:38 pm
Forum: Pyboard D-series
Topic: BLE beacon in standby()...?
Replies: 1
Views: 362

BLE beacon in standby()...?

Hi all, Just pondering if it would be possible to have a BLE beacon running during standby() on the PYBD. The 1DX has an internal pull-down resistor on the BT_REG_ON pin that can be "disabled through programming" which is vague but possibly useful. What are the many and obvious reasons why this is n...