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
Re: Phoenix Air - WiFi for the H5 Phoenix
Not bad for 4 colours I guess
I really need to build a Falcon version so I can use higher resolutions

I really need to build a Falcon version so I can use higher resolutions
Re: Phoenix Air - WiFi for the H5 Phoenix
Time for another update on the Phoenix Air WiFi board, as quite a lot has happened since the last post.
First, how things are being timed, as it makes the numbers below make more sense. Most of the testing has been on one page, page 2 of the SuperVidel topic, as it has three big screenshots in it, two at 1024x768 and one at 831x717. HighWire now shows two times in the bar at the bottom of the window once a page has finished loading. Page shown is from the busy bee coming on when you click a link, to the text of the page appearing. All done is from that same point to the last picture being drawn and the busy bee going away. It also keeps a log with the time each picture took to decode, which is how long HighWire takes to read the picture and turn it into screen pixels, not counting the download. So no more sitting there with a stopwatch.
The big change is pictures. Forum posts are full of full size photos and screenshots, and an 8MHz ST decoding a big JPEG can take well over a minute per picture. So the ESP32 now converts them before the ST ever sees them. It downloads the picture, scales it down to the size it will actually be shown at, dithers it into whatever colours the screen has, and sends it on as a small GIF. On ST medium it also squashes them to suit the tall pixels. On my real ST the first test turned 225KB of pictures into 32KB of GIF, at about 1.6 seconds a picture on the ESP. In Hatari, that SuperVidel page went from four and a half minutes to all done, down to just over a minute, in medium resolution.
That left HighWire's own GIF reading as the slow part, so it now has its own GIF decoder written for the 68000 instead of the stock library. The ESP sends the three screenshots as GIFs about 576 pixels wide and between 2KB and 10KB each. On my real ST in medium resolution, the decode time for those three went from 9.4, 9.4 and 11 seconds each to 4.4, 4.8 and 5.9 seconds. The pictures come out pixel for pixel the same, which I checked in Hatari.
The ESP firmware also got a few safety nets. It now sends the start of the reply before it begins converting a picture, as HighWire was giving up after two seconds and fetching some of them again later. It uses half the memory it did per picture, checks there is enough free before it starts, and anything over 3MB, or that it cannot read and is bigger than 512x512, now comes through as a small grey box rather than a huge file. It only fetches the first 256KB of a picture like that, just enough to find out its size. HighWire itself also now skips anything over 1600x1280, as no Atari screen would show it anyway.
HighWire also checks for the network driver at start up now and quits with a message if it is not running on a Phoenix Air board, so nobody tries it on a stock machine and wonders why it keeps crashing.
Picking an address from the list behind the address bar took about 20 seconds before anything happened. It turned out stock HighWire rewrites its whole config file once for every address in that list before it even asks for the page, so ten times over the network drive. Very thorough, not very useful. It now saves the list once when it quits, and on my ST the busy bee now comes up 0.37 seconds after picking an address.
NVDI was another one. With NVDI loaded, HighWire switched to NVDI's outline fonts, which on an 8MHz ST drew the text letter by letter and made the forum index take 68 seconds to all done in Hatari instead of 42. HighWire now keeps to the system font even when NVDI is loaded, so pages look exactly the same, and NVDI just does the drawing faster. In Hatari the forum index is now all done in 40 seconds with NVDI. On the real ST the difference shows most when scrolling, which is a lot quicker with NVDI loaded. There is a setting in the config to use NVDI's fonts again for anyone who wants them.
Comparing the two also showed up an old bug in stock HighWire, where every bold word had an extra pixel per letter added to its width, which is why bold titles had double gaps between the words. That is fixed as well.
On the real ST tonight, with an empty cache, that SuperVidel page shows in 16 to 19 seconds and is all done in 63 to 65 seconds.
On the hardware side, I built Icky a board today, and it had a fault where the machine would not start at all after pressing reset. On the scope the 68000 read its first four words after reset and then halted. A test version of the data CPLD that never drives the bus booted every time, from power on and from reset, so it was down to that CPLD. Its data bus drivers were not held off while the ST was in reset, so it could end up on the bus while the machine was starting. The CPLD now only drives the bus once the ST is out of reset and it has properly seen an access to its own address. My own board, which had the odd power up hang as well, is now running that version, so we will see if that goes away too.
Icky's board has its ESP flashed, it has joined my WiFi and the network drive is set up on it. There was no antenna plugged in at all, but it still found the router about a metre away. Range without one will not be great though, so a compact antenna is next on the list.
First, how things are being timed, as it makes the numbers below make more sense. Most of the testing has been on one page, page 2 of the SuperVidel topic, as it has three big screenshots in it, two at 1024x768 and one at 831x717. HighWire now shows two times in the bar at the bottom of the window once a page has finished loading. Page shown is from the busy bee coming on when you click a link, to the text of the page appearing. All done is from that same point to the last picture being drawn and the busy bee going away. It also keeps a log with the time each picture took to decode, which is how long HighWire takes to read the picture and turn it into screen pixels, not counting the download. So no more sitting there with a stopwatch.
The big change is pictures. Forum posts are full of full size photos and screenshots, and an 8MHz ST decoding a big JPEG can take well over a minute per picture. So the ESP32 now converts them before the ST ever sees them. It downloads the picture, scales it down to the size it will actually be shown at, dithers it into whatever colours the screen has, and sends it on as a small GIF. On ST medium it also squashes them to suit the tall pixels. On my real ST the first test turned 225KB of pictures into 32KB of GIF, at about 1.6 seconds a picture on the ESP. In Hatari, that SuperVidel page went from four and a half minutes to all done, down to just over a minute, in medium resolution.
That left HighWire's own GIF reading as the slow part, so it now has its own GIF decoder written for the 68000 instead of the stock library. The ESP sends the three screenshots as GIFs about 576 pixels wide and between 2KB and 10KB each. On my real ST in medium resolution, the decode time for those three went from 9.4, 9.4 and 11 seconds each to 4.4, 4.8 and 5.9 seconds. The pictures come out pixel for pixel the same, which I checked in Hatari.
The ESP firmware also got a few safety nets. It now sends the start of the reply before it begins converting a picture, as HighWire was giving up after two seconds and fetching some of them again later. It uses half the memory it did per picture, checks there is enough free before it starts, and anything over 3MB, or that it cannot read and is bigger than 512x512, now comes through as a small grey box rather than a huge file. It only fetches the first 256KB of a picture like that, just enough to find out its size. HighWire itself also now skips anything over 1600x1280, as no Atari screen would show it anyway.
HighWire also checks for the network driver at start up now and quits with a message if it is not running on a Phoenix Air board, so nobody tries it on a stock machine and wonders why it keeps crashing.
Picking an address from the list behind the address bar took about 20 seconds before anything happened. It turned out stock HighWire rewrites its whole config file once for every address in that list before it even asks for the page, so ten times over the network drive. Very thorough, not very useful. It now saves the list once when it quits, and on my ST the busy bee now comes up 0.37 seconds after picking an address.
NVDI was another one. With NVDI loaded, HighWire switched to NVDI's outline fonts, which on an 8MHz ST drew the text letter by letter and made the forum index take 68 seconds to all done in Hatari instead of 42. HighWire now keeps to the system font even when NVDI is loaded, so pages look exactly the same, and NVDI just does the drawing faster. In Hatari the forum index is now all done in 40 seconds with NVDI. On the real ST the difference shows most when scrolling, which is a lot quicker with NVDI loaded. There is a setting in the config to use NVDI's fonts again for anyone who wants them.
Comparing the two also showed up an old bug in stock HighWire, where every bold word had an extra pixel per letter added to its width, which is why bold titles had double gaps between the words. That is fixed as well.
On the real ST tonight, with an empty cache, that SuperVidel page shows in 16 to 19 seconds and is all done in 63 to 65 seconds.
On the hardware side, I built Icky a board today, and it had a fault where the machine would not start at all after pressing reset. On the scope the 68000 read its first four words after reset and then halted. A test version of the data CPLD that never drives the bus booted every time, from power on and from reset, so it was down to that CPLD. Its data bus drivers were not held off while the ST was in reset, so it could end up on the bus while the machine was starting. The CPLD now only drives the bus once the ST is out of reset and it has properly seen an access to its own address. My own board, which had the odd power up hang as well, is now running that version, so we will see if that goes away too.
Icky's board has its ESP flashed, it has joined my WiFi and the network drive is set up on it. There was no antenna plugged in at all, but it still found the router about a metre away. Range without one will not be great though, so a compact antenna is next on the list.

