parallaxinc / BadgeWX

BadgeWX Firmware and Test Code
MIT License
3 stars 3 forks source link

Static OLED display from previous runtime #5

Open PropGit opened 5 years ago

PropGit commented 5 years ago

@VonSzarvas - Is this still an issue in the latest firmware, or was it already fixed?

OLED's previous display is left intact and appears on-screen upon a reboot until the Propeller App is loaded and exercises the OLED

VonSzarvas commented 5 years ago

This was partially fixed in the current firmware, and will already apply to the next build of Badges which include a hardware mini-rev that's allows the WiFi module to reset the OLED screen.

The behavior is as follows:

At power-on, the WiFi module clears the OLED immediately after loading Parallax-ESP. It means the stale OLED content will flash on for about 1 second, instead of the ~6 seconds that it previously was on for.

There is one more improvement which is a software task, which should ensure the OLED artifacts do not appear at all. The code has been written, but deemed to have some risk so commented out in the current build pending oversight from Jeff and some time to test it carefully.

konimaru commented 5 years ago

Are there any more details as to what this h/w mini-rev actually is (and how one can identify it on a given badge)? I couldn't find anything obvious in the rev B schematics (June 2018).

VonSzarvas commented 5 years ago

Hi Marko!

There will be a schematic update posted soon to the Parallax site.

Rev.B Badge's with datecode 1837 onward have the update. They are the in-stock versions now at the Parallax shop.

One extra trace is added, and could be added to older badges by users (or at least that's what I've been doing!) WiFi module IO4 (pin10) to Propeller P19

That pin is also connected on all badges to the OLED reset (RES# 14) pin. The WiFi module pulses that pin low at power-up, before the Propeller is started (whilst the Prop I/O's are still inputs). The low pulse resets/clears the OLED.

There will probably be another firmware update in a few weeks which will integrate some non-vital updates to the underlying wifi module codebase. At that time (when we need to recompile everything) we plan to add another pulse moment to the badge firmware, so that the OLED will also get cleared when the wifi module has reset the propeller and is about to download user code. Ie. this will also clear the screen every time new code is downloaded.

That's all the details up to the very latest plan, so hopefully that all works with what your planning too.

All the best.

konimaru commented 5 years ago

Rev.B Badge's with datecode 1837 onward have the update.

Ah, that's exactly the one I have. Just wanted to make sure whether I had to update my driver (courtesy of eBadge and LameStation2). Which is now done. Thanks for the extra info.