Phoenix Air - WiFi for the H5 Phoenix

All the good stuff hardware and software wise for the Phoenix H5 series motherboards.
Steve
Moderator
Moderator
Posts: 3423
Joined: Fri Sep 15, 2017 11:49 am

Re: Phoenix Air - WiFi for the H5 Phoenix

Post by Steve »

This is certainly something I'd be very keen to put in my H5 (that and any other of the special modules that are in the works!)
User avatar
exxos
Site Admin
Site Admin
Posts: 29934
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Phoenix Air - WiFi for the H5 Phoenix

Post by exxos »

Steve wrote: Wed Dec 02, 2026 6:39 pm This is certainly something I'd be very keen to put in my H5 (that and any other of the special modules that are in the works!)
Currently im trying to make use of the wifi module in Highwire as it has two 240 MHz CPU cores in it ;)
User avatar
Icky
Site Admin
Site Admin
Posts: 4458
Joined: Sun Sep 03, 2017 10:57 am
Location: UK

Re: Phoenix Air - WiFi for the H5 Phoenix

Post by Icky »

You caught up with me :)

The shared N: drive is such a cool feature it saves so much time. I use it all the time now.
User avatar
exxos
Site Admin
Site Admin
Posts: 29934
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Phoenix Air - WiFi for the H5 Phoenix

Post by exxos »

Icky wrote: Wed Dec 02, 2026 8:23 pm You caught up with me :)
Yeah. my antenna is bigger than yours :P
The shared N: drive is such a cool feature it saves so much time. I use it all the time now.
I see a sad end to my floppy collection now :P But I won't miss swapping floppies between PC and ST 500 times a day. Even CF card while quicker, the PC wouldn't find the CF adapter or CF card half the time. Plus its still swapping stuff about 500 times a day anyway.
User avatar
JezC
Posts: 2925
Joined: Mon Aug 28, 2017 11:44 pm

Re: Phoenix Air - WiFi for the H5 Phoenix

Post by JezC »

Steve wrote: Wed Dec 02, 2026 6:39 pm This is certainly something I'd be very keen to put in my H5 (that and any other of the special modules that are in the works!)
+1 on this - would be incredibly useful for daily use!
User avatar
exxos
Site Admin
Site Admin
Posts: 29934
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Phoenix Air - WiFi for the H5 Phoenix

Post by exxos »

Phoenix Air board rev 4 is drawn up, not ordered yet.

What changed from the boards I have here:

A USB-C socket on the module end for flashing the ESP, so no more cutting up a USB lead to get at the pads. It is only ever plugged in with the board out of the ST, and the USB power can't feed back into the machine.

A small green LED that flashes whenever the ST talks to the WiFi module. The decode CPLD drives it and gets the 8MHz clock now, so a single access gets stretched long enough to actually see.

The JTAG header has moved a couple of mm further from the 68k socket pins, after I managed to short the two together soldering it.

The ST's reset line now resets the ESP too through a diode, so a reset button press restarts the firmware instead of only a power cycle.

A spare pad on the decode CPLD for an interrupt line to the ST later on, and an interrupt input from the ESP.

The whole thing still fits inside the 68000 socket outline, same four layers, hand routed, no autorouter. Three short runs on the power plane layer where there was no way through on the outer layers, which I have noted.

Still to do before ordering: my own DRC and ERC, check JLC's view of the USB socket footprint, then the CPLD and firmware changes for the new pins.

Rendering attached, which is as close as I am getting to a photo without sending any money to China first.

Capture.PNG
Capture.PNG (468.67 KiB) Viewed 14 times
User avatar
exxos
Site Admin
Site Admin
Posts: 29934
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Phoenix Air - WiFi for the H5 Phoenix

Post by exxos »

Keep up, he says. While @Icky has been busy pairing Xbox controllers, I have been quietly rebuilding HighWire for the Phoenix Air WiFi board, so I thought I would post where it has got to.

I'm calling it the Phoenix browser. Underneath it is still HighWire 0.4.8, but it has been heavily adapted for the platform, and the ESP32 on the WiFi board now does a lot of the heavy lifting that an 8MHz 68000 really should not be doing.

This is where it started, stock HighWire 0.4.8 loading the forum index in Hatari on a plain 8MHz ST. On my real ST it took 75 seconds to get through this page, and in Hatari about 90. Most of that was not the network at all, it was HighWire grinding its way through the forum's stylesheets.

POST4_01.png
POST4_01.png (14.89 KiB) Viewed 4 times

The first big win was the CSS matching. Every element on the page was being checked against every style rule, which was about a third of all the CPU time. The rules are now indexed by their last selector, each rule's declarations are parsed once instead of every time it matches, and a quick filter on the parent elements throws out most of what is left. Along with replacing the C library's mktime(), which cost about a million cycles a call and ran three times for every file, that took the forum index from 90 seconds to about 51 in Hatari.

Then a lot of smaller things added up. time() cost about 130ms a call under plain TOS, the main loop was waiting for the AES's next 20ms timer tick between every job, and the status bar was being redrawn 104 times on the forum index at about 55ms a go. Fixing those three saved just over 8 seconds on their own. Pictures were rewriting the whole disk cache index every time one arrived, which is now a single line added to the end, and tag and style names are now read without library calls.

A lot of plain bugs got fixed along the way, many of them in stock 0.4.8 too. A backslash in a CSS string swallowed the rules after it, so every drop down menu on the forum showed. Any @media query stopped the whole stylesheet, so on the forum everything after line 26 of common.css was simply lost. @supports, @keyframes and @charset did much the same, as did selectors with brackets and comments inside a rule. !important never worked, display: none was ignored on inline elements, a list item's class was never seen, anything inside an element with several classes never matched, and hidden boxes still took up room. Today's fixes were every second box of the same colour losing its background, and list item backgrounds only covering their own text, which is why the topic rows came out blue on a colour screen.

The ESP side does a fair bit too. It does all the HTTPS for HighWire, so the ST never has to go near TLS, and with keep-alive on the real board the connect and TLS time for the forum's 24 files went from 15 seconds in total to 0.6 seconds. It trims the pages and stylesheets of what HighWire ignores anyway, which is 39% less data to the ST. The big one is pre-styling. The ESP fetches the stylesheets itself, works out every element's style the way a modern browser does for a 640 pixel wide screen, and writes it straight into the page, so HighWire has no CSS to read at all. Run from the network drive with the real network in Hatari, the forum is laid out about 12 seconds after asking for it, against 42 seconds without.

HighWire cannot draw CSS pictures or icon fonts, so the ESP now draws the forum icons and the Font Awesome icons as small pictures, at exactly the size they are shown and in whatever colours the screen has. This is the same page now, still in mono.

POST4_02.png
POST4_02.png (17.11 KiB) Viewed 4 times
POST4_03.png
POST4_03.png (18.2 KiB) Viewed 4 times

On ST medium the two spare colours are set to a light grey and the forum's blue, which came out closest to how Chrome draws the forum out of every pair of colours the ST can show. Text in medium resolution now uses the 8x8 font like the desktop does, instead of the double height 8x16 one, so a lot more fits on screen.

POST4_04.png
POST4_04.png (16.03 KiB) Viewed 4 times
POST4_05.png
POST4_05.png (17.86 KiB) Viewed 4 times

ST low gets 16 colours, twelve of them picked the same way, and the ESP styles the page for its 320 pixel wide screen.

POST4_06.png
POST4_06.png (16.43 KiB) Viewed 4 times

Search boxes work now as well. HighWire never drew a box for the newer search type of input field, only its button, so the forum's search did nothing. Type a word, press Return, and the results come back from the forum like any other page.

POST4_07.png
POST4_07.png (17.24 KiB) Viewed 4 times

The busy bee also now stays until the page and all its pictures are in, rather than turning back into the arrow as soon as the mouse moves. All of these screenshots are from Hatari running the ESP's own code on the PC. It's not finished yet and the latest bits still need testing on the real board, but it's getting there.

Anyway, keep up @Icky ;)
Post Reply

Return to “PHOENIX ZONE”