Phoenix Air - WiFi for the H5 Phoenix
Re: Phoenix Air - WiFi for the H5 Phoenix
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!)
Re: Phoenix Air - WiFi for the H5 Phoenix
Currently im trying to make use of the wifi module in Highwire as it has two 240 MHz CPU cores in itSteve 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!)
Re: Phoenix Air - WiFi for the H5 Phoenix
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.
The shared N: drive is such a cool feature it saves so much time. I use it all the time now.
Re: Phoenix Air - WiFi for the H5 Phoenix
Yeah. my antenna is bigger than yours
I see a sad end to my floppy collection nowThe shared N: drive is such a cool feature it saves so much time. I use it all the time now.
Re: Phoenix Air - WiFi for the H5 Phoenix
+1 on this - would be incredibly useful for daily use!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!)
Re: Phoenix Air - WiFi for the H5 Phoenix
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.
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.
Re: Phoenix Air - WiFi for the H5 Phoenix
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.
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.
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.
ST low gets 16 colours, twelve of them picked the same way, and the ESP styles the page for its 320 pixel wide screen.
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.
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
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.
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.
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.
ST low gets 16 colours, twelve of them picked the same way, and the ESP styles the page for its 320 pixel wide screen.
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.
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

