Drivers for ESP modules

Help & news on accelerators from TF, Amiga, Atari, CD32 etc

Moderators: terriblefire, Terriblefire Moderator

terriblefire
Moderator Team
Moderator Team
Posts: 1957
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Drivers for ESP modules

Post by terriblefire » Thu Aug 29, 2019 10:19 am

I've a fair bit of experience writing Linux drivers (and RISCOS too actually) but i find Amiga device drivers to be rather horrible to write and there is a huge amount of repetition in every driver.... but anyhoo..

What I would like to do is write a driver that sits on top of any serial port that can talk to and from an ESP 8266 *protocol* wifi module.... i dont really care if its the same actual hardware i want to abstract away the physical layer so we can connect to the wifi, send recv and do the IP address, mac address functions.

Probably the easiest way to do the top layer is to write this in WinUAE with it connected to a real wifi module.

However I would really like some collaboration on this one. Hardware is not something i find easy to collaborate on but software is.
———
I get cranky when asked to repeat myself.

User avatar
kludge
Posts: 356
Joined: Thu Nov 08, 2018 2:05 pm
Location: Sweden
Contact:

Re: Drivers for ESP modules

Post by kludge » Thu Aug 29, 2019 10:54 am

I would help if I could. Count on me cheering, anyway. Easy WiFi would be amazing.

Would there be room for an ESP header on a hypothetical new revision of the TF536 as well?
A kludge is a workaround or quick-and-dirty solution that is clumsy, inelegant, inefficient, difficult to extend and hard to maintain.

My lack of focus:
[ 3 * Amiga 500 ][ Amiga 500+ ][ Amiga 600HD ][ Amiga 2000 ][ Amiga 4000/030 w/ 64 MB RAM hack ][ CD32 (NTSC) ][ VIC-20 ][ 4 * C64 Breadbin ][ 2 * C64C ][ 2 * C128 ][ Mac Classic ][ Mac Classic II ][ Mac Colour Classic ]

terriblefire
Moderator Team
Moderator Team
Posts: 1957
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: Drivers for ESP modules

Post by terriblefire » Thu Aug 29, 2019 11:11 am

kludge wrote:
Thu Aug 29, 2019 10:54 am
I would help if I could. Count on me cheering, anyway. Easy WiFi would be amazing.

Would there be room for an ESP header on a hypothetical new revision of the TF536 as well?
We are low on spare pins on that board... but in theory yes.
———
I get cranky when asked to repeat myself.

terriblefire
Moderator Team
Moderator Team
Posts: 1957
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: Drivers for ESP modules

Post by terriblefire » Thu Aug 29, 2019 11:17 am

Anyways lets make a start...

https://github.com/terriblefire/esp.device

I will make the device driver based around Mike Stirlings's K1208 driver because thats the cleanest driver i can find...

We'll start by writing a test file to open uaeserial.device and talk to a ESP module connected to the serial port in WinUAE...

We'll write an actual serial port driver for the TFs later.
———
I get cranky when asked to repeat myself.

User avatar
kludge
Posts: 356
Joined: Thu Nov 08, 2018 2:05 pm
Location: Sweden
Contact:

Re: Drivers for ESP modules

Post by kludge » Thu Aug 29, 2019 11:32 am

terriblefire wrote:
Thu Aug 29, 2019 11:17 am
Anyways lets make a start...

https://github.com/terriblefire/esp.device

I will make the device driver based around Mike Stirlings's K1208 driver because thats the cleanest driver i can find...

We'll start by writing a test file to open uaeserial.device and talk to a ESP module connected to the serial port in WinUAE...

We'll write an actual serial port driver for the TFs later.
Would your driver be able to work with an ESP connected to the standard Amiga serial port as well? (Of course with proper level shifting applied.)
A kludge is a workaround or quick-and-dirty solution that is clumsy, inelegant, inefficient, difficult to extend and hard to maintain.

My lack of focus:
[ 3 * Amiga 500 ][ Amiga 500+ ][ Amiga 600HD ][ Amiga 2000 ][ Amiga 4000/030 w/ 64 MB RAM hack ][ CD32 (NTSC) ][ VIC-20 ][ 4 * C64 Breadbin ][ 2 * C64C ][ 2 * C128 ][ Mac Classic ][ Mac Classic II ][ Mac Colour Classic ]

terriblefire
Moderator Team
Moderator Team
Posts: 1957
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: Drivers for ESP modules

Post by terriblefire » Thu Aug 29, 2019 11:36 am

kludge wrote:
Thu Aug 29, 2019 11:32 am
terriblefire wrote:
Thu Aug 29, 2019 11:17 am
Anyways lets make a start...

https://github.com/terriblefire/esp.device

I will make the device driver based around Mike Stirlings's K1208 driver because thats the cleanest driver i can find...

We'll start by writing a test file to open uaeserial.device and talk to a ESP module connected to the serial port in WinUAE...

We'll write an actual serial port driver for the TFs later.
Would your driver be able to work with an ESP connected to the standard Amiga serial port as well? (Of course with proper level shifting applied.)
The amiga would need a 11500 baud capable serial port.
———
I get cranky when asked to repeat myself.

User avatar
kludge
Posts: 356
Joined: Thu Nov 08, 2018 2:05 pm
Location: Sweden
Contact:

Re: Drivers for ESP modules

Post by kludge » Thu Aug 29, 2019 11:47 am

terriblefire wrote:
Thu Aug 29, 2019 11:36 am
kludge wrote:
Thu Aug 29, 2019 11:32 am


Would your driver be able to work with an ESP connected to the standard Amiga serial port as well? (Of course with proper level shifting applied.)
The amiga would need a 11500 baud capable serial port.
So, not without an accelerator then :)
A kludge is a workaround or quick-and-dirty solution that is clumsy, inelegant, inefficient, difficult to extend and hard to maintain.

My lack of focus:
[ 3 * Amiga 500 ][ Amiga 500+ ][ Amiga 600HD ][ Amiga 2000 ][ Amiga 4000/030 w/ 64 MB RAM hack ][ CD32 (NTSC) ][ VIC-20 ][ 4 * C64 Breadbin ][ 2 * C64C ][ 2 * C128 ][ Mac Classic ][ Mac Classic II ][ Mac Colour Classic ]

terriblefire
Moderator Team
Moderator Team
Posts: 1957
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: Drivers for ESP modules

Post by terriblefire » Thu Aug 29, 2019 12:03 pm

kludge wrote:
Thu Aug 29, 2019 11:47 am
terriblefire wrote:
Thu Aug 29, 2019 11:36 am


The amiga would need a 11500 baud capable serial port.
So, not without an accelerator then :)
Or some kind of baud rate buffer. A big FIFO would do the job. but its probably not worth it.

The idea is that this can be used by any Amiga with a fast serial port.. clockport etc. its a protocol adaptor rather that a physical layer adaptor.
———
I get cranky when asked to repeat myself.

Zac
Posts: 4
Joined: Tue Sep 03, 2019 9:05 pm

Re: Drivers for ESP modules

Post by Zac » Tue Sep 03, 2019 9:15 pm

Hi,

what protocol would the device work with? AmiTCP? AS225? And a second question: why couldn't I compile the driver to run with 38.400 baud or less?

I have prepared a small PCB to bring the ESP8266 to the Amiga. It doesn't do anything fancy, just some level conversion (Max 3232) and a voltage regulator. If anyone's interested, I could provide the KiCAD files. I want to use it with PPP.

Michael
Platine.pdf
(33.75 KiB) Downloaded 52 times

terriblefire
Moderator Team
Moderator Team
Posts: 1957
Joined: Mon Aug 28, 2017 10:56 pm
Location: Glasgow, UK
Contact:

Re: Drivers for ESP modules

Post by terriblefire » Tue Sep 03, 2019 9:20 pm

Zac wrote:
Tue Sep 03, 2019 9:15 pm
Hi,

what protocol would the device work with? AmiTCP? AS225? And a second question: why couldn't I compile the driver to run with 38.400 baud or less?


Driver would be SANA-II. Standard Amiga driver. You could use any TCP Stack.

The Native ESP protocol is 115200. Thats why it needed that speed.
I have prepared a small PCB to bring the ESP8266 to the Amiga. It doesn't do anything fancy, just some level conversion (Max 3232) and a voltage regulator. If anyone's interested, I could provide the KiCAD files. I want to use it with PPP.
The TF330 does the level shift from Paula Serial on the CD32. Pretty much does what your board does.
———
I get cranky when asked to repeat myself.

Post Reply

Return to “Terriblefire's channel”