Atom with ESP8266 WiFi connects to the internet

discussion of games, software, hardware & emulators relating to the Acorn Atom
User avatar
roland
Posts: 2782
Joined: Thu Aug 29, 2013 8:29 pm
Location: Born (NL)
Contact:

Atom with ESP8266 WiFi connects to the internet

Postby roland » Sun Nov 06, 2016 8:26 pm

Today I fiddled a bit with my Atom and ESP8266 to try to read some stuff from a web server on the internet. And I managed to download some bytes from acornatom.nl. It is not the best quality of data transfer and I think that the combination of Atom/ESP8266 to Apache2 is not the best method but it kind of works:

AtomHTTP.jpg


And this is what was happening on the web server:

Code: Select all

20:55:53.643856 IP 541A03C1.cm-5-3a.dynamic.ziggo.nl.39477 > ws12.cis-websolutions.nl.http: Flags [S], seq 10325, win 5840, options [mss 1460], length 0
   0x0000:  4500 002c 000b 0000 f906 24e2 541a 03c1  E..,......$.T...
   0x0010:  95d2 af31 9a35 0050 0000 2855 0000 0000  ...1.5.P..(U....
   0x0020:  6002 16d0 219d 0000 0204 05b4            `...!.......
20:55:53.643898 IP ws12.cis-websolutions.nl.http > 541A03C1.cm-5-3a.dynamic.ziggo.nl.39477: Flags [S.], seq 1225567796, ack 10326, win 14600, options [mss 1460], length 0
   0x0000:  4500 002c 0000 4000 4006 9ded 95d2 af31  E..,..@.@......1
   0x0010:  541a 03c1 0050 9a35 490c ae34 0000 2856  T....P.5I..4..(V
   0x0020:  6012 3908 0813 0000 0204 05b4            `.9.........
20:55:53.659721 IP 541A03C1.cm-5-3a.dynamic.ziggo.nl.39477 > ws12.cis-websolutions.nl.http: Flags [.], ack 1, win 5840, length 0
   0x0000:  4500 0028 000c 0000 f906 24e5 541a 03c1  E..(......$.T...
   0x0010:  95d2 af31 9a35 0050 0000 2856 490c ae35  ...1.5.P..(VI..5
   0x0020:  5010 16d0 4208 0000                      P...B...
20:56:03.929558 IP 541A03C1.cm-5-3a.dynamic.ziggo.nl.39477 > ws12.cis-websolutions.nl.http: Flags [P.], seq 1:44, ack 1, win 5840, length 43
   0x0000:  4500 0053 000d 0000 fa06 23b9 541a 03c1  E..S......#.T...
   0x0010:  95d2 af31 9a35 0050 0000 2856 490c ae35  ...1.5.P..(VI..5
   0x0020:  5018 16d0 f63f 0000 4745 5420 2f20 4854  P....?..GET./.HT
   0x0030:  5450 2f31 2e31 0d0a 484f 5354 3a20 5757  TP/1.1..HOST:.WW
   0x0040:  572e 4143 4f52 4e41 544f 4d2e 4e4c 0d0a  W.ACORNATOM.NL..
   0x0050:  0d0a 0d                                  ...
20:56:03.929630 IP ws12.cis-websolutions.nl.http > 541A03C1.cm-5-3a.dynamic.ziggo.nl.39477: Flags [.], ack 44, win 14600, length 0
   0x0000:  4500 0028 4ee7 4000 4006 4f0a 95d2 af31  E..(N.@.@.O....1
   0x0010:  541a 03c1 0050 9a35 490c ae35 0000 2881  T....P.5I..5..(.
   0x0020:  5010 3908 1fa5 0000                      P.9.....
20:56:03.931378 IP ws12.cis-websolutions.nl.http > 541A03C1.cm-5-3a.dynamic.ziggo.nl.39477: Flags [.], seq 1:1461, ack 44, win 14600, length 1460
   0x0000:  4500 05dc 4ee8 4000 4006 4955 95d2 af31  E...N.@.@.IU...1
   0x0010:  541a 03c1 0050 9a35 490c ae35 0000 2881  T....P.5I..5..(.
   0x0020:  5010 3908 a2ad 0000 4854 5450 2f31 2e31  P.9.....HTTP/1.1
   0x0030:  2032 3030 204f 4b0d 0a44 6174 653a 2053  .200.OK..Date:.S
   0x0040:  756e 2c20 3036 204e 6f76 2032 3031 3620  un,.06.Nov.2016.
   0x0050:  3139 3a35 363a 3033 2047 4d54 0d0a 5365  19:56:03.GMT..Se
   0x0060:  7276 6572 3a20 4170 6163 6865 2f32 0d0a  rver:.Apache/2..
   0x0070:  4c61 7374 2d4d 6f64 6966 6965 643a 2053  Last-Modified:.S
   0x0080:  756e 2c20 3031 204d 6179 2032 3031 3620  un,.01.May.2016.
   0x0090:  3130 3a30 363a 3232 2047 4d54 0d0a 4554  10:06:22.GMT..ET
   0x00a0:  6167 3a20 2263 3736 6365 2d36 3138 2d35  ag:."c76ce-618-5
   0x00b0:  3331 6335 3037 3336 3335 3266 220d 0a41  31c50736352f"..A
   0x00c0:  6363 6570 742d 5261 6e67 6573 3a20 6279  ccept-Ranges:.by
   0x00d0:  7465 730d 0a43 6f6e 7465 6e74 2d4c 656e  tes..Content-Len
   0x00e0:  6774 683a 2031 3536 300d 0a56 6172 793a  gth:.1560..Vary:
   0x00f0:  2041 6363 6570 742d 456e 636f 6469 6e67  .Accept-Encoding
   0x0100:  2c55 7365 722d 4167 656e 740d 0a43 6f6e  ,User-Agent..Con
   0x0110:  7465 6e74 2d54 7970 653a 2074 6578 742f  tent-Type:.text/
   0x0120:  6874 6d6c 0d0a 0d0a 3c21 2d2d 2073 6176  html....<!--.sav
   0x0130:  6564 2066 726f 6d20 7572 6c3d 2830 3032  ed.from.url=(002
   0x0140:  3229 6874 7470 3a2f 2f69 6e74 6572 6e65  2)http://interne
   0x0150:  742e 652d 6d61 696c 202d 2d3e 0d0a 3c3f  t.e-mail.-->..<?
   0x0160:  584d 4c20 7665 7273 696f 6e3d 2231 2e30  XML.version="1.0
   0x0170:  2220 656e 636f 6469 6e67 3d22 6973 6f2d  ".encoding="iso-


My goal is to write a piece of software that makes it possible to read an Atom file from a server on the internet. Some kind if AIFS (Atomic Internet File System). I think the best way to do this is to write a small server program that sends small blocks of data to the Atom with handshake and error detection. But for a first start I'm very happy with these results. After all, the Wright brothers didn't also build an Airbus :lol:
256K + 6502 Inside
MAN WOMAN :shock:

User avatar
sirmorris
Posts: 709
Joined: Wed Feb 11, 2009 12:18 pm
Location: oxfordshire uk
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby sirmorris » Sun Nov 06, 2016 8:58 pm

=D> =D> Nice work Roland!

User avatar
1024MAK
Posts: 6730
Joined: Mon Apr 18, 2011 4:46 pm
Location: Looking forward to summer in Somerset, UK...

Re: Atom with ESP8266 WiFi connects to the internet

Postby 1024MAK » Sun Nov 06, 2016 9:54 pm

You've got my attention :wink: 8)

Mark
For a "Complete BBC Games Archive" visit www.bbcmicro.co.uk NOW!
BeebWiki‬ - for answers to many questions...

SteveBagley
Posts: 129
Joined: Sun Mar 15, 2015 8:44 pm

Re: Atom with ESP8266 WiFi connects to the internet

Postby SteveBagley » Sun Nov 06, 2016 11:56 pm

roland wrote:My goal is to write a piece of software that makes it possible to read an Atom file from a server on the internet. Some kind if AIFS (Atomic Internet File System). I think the best way to do this is to write a small server program that sends small blocks of data to the Atom with handshake and error detection. But for a first start I'm very happy with these results. After all, the Wright brothers didn't also build an Airbus :lol:


Nice work! Have you considered using TFTP as a starting point for your server? It's designed to be dead simple to implement and transfers files in 512 byte blocks which should fit well with the 6502?

https://tools.ietf.org/html/rfc1350

Steve

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Mon Nov 07, 2016 7:15 am

Nice work Roland.

I've always wanted to have a "networked" version of AtoMMC so that all my Atoms, AtomFPGAs and Atomulators could share the same MMC file system.

I wonder if something like this might be possible with the ESP8266?

Dave

User avatar
oss003
Posts: 2537
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby oss003 » Mon Nov 07, 2016 7:23 am

Nice job Roland =D>

Maybe this is a good place to start: https://github.com/oliverschmidt/ip65/tree/master/ip65
Or EcoTCP: http://mdfs.net/Apps/Networking/
Or the FTP protocol in Contiki, Contiki is written for CC65: https://github.com/contiki-os/contiki/tree/master/apps

Greetings
Kees
Attachments
apps.zip
(325.2 KiB) Downloaded 18 times

User avatar
BigEd
Posts: 1440
Joined: Sun Jan 24, 2010 10:24 am
Location: West
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby BigEd » Mon Nov 07, 2016 6:47 pm

Brilliant!

User avatar
roland
Posts: 2782
Joined: Thu Aug 29, 2013 8:29 pm
Location: Born (NL)
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby roland » Thu Nov 10, 2016 8:01 am

SteveBagley wrote:Have you considered using TFTP as a starting point for your server? It's designed to be dead simple to implement and transfers files in 512 byte blocks which should fit well with the 6502?


TFTP is a nice protocol to implement for a test but it lacks features like directory listings. I might give it a try, but before starting with that I have to figure out why the Atom still misses some bytes. The test in this post was at 1200 baud, not exactly a high speed. The program stores the bytes into memory so there is no latency caused by writing to the screen. It completely breaks between 256 and 512 bytes.

I don't think that it's caused by high network speeds because this problem also occurs when querying for wireless networks in the neighbourhood. At first I will connect my logic analyser to try to solve that issue.
256K + 6502 Inside
MAN WOMAN :shock:

User avatar
oss003
Posts: 2537
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby oss003 » Thu Nov 10, 2016 9:33 am

Roland,

maybe you can use the TYPEAHEAD program to buffer the bytes from the ESP8266 instead of the keyboard.
I want to try this idea for my Serial Terminal program to see if I can make it more stable at higher baudrates.

Greetings
Kees

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Thu Nov 10, 2016 9:47 am

Roland,

I wonder if it's time to improve the design of the RS232 part of the GODIL?

Minimally we could add an interrupt output, which would mean an additional jumper wire somewhere.

Alternatively, it might be possible to replace the RS232 core with one that has a bit more buffering.

That said, I'm able to upload reliably at 115,200 baud using the commands in FPGAUtils.

What is the software on the Atom side doing when receiving? Is it available anywhere for me to take a look at?

Dave

User avatar
roland
Posts: 2782
Joined: Thu Aug 29, 2013 8:29 pm
Location: Born (NL)
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby roland » Thu Nov 10, 2016 9:38 pm

I'm not sure if the RS232 in the Godil is the problem. I can transfer files from my development PC or Mac to the Atom at higher speeds, without any problems. However, when the ESP is connected to my laptop, I can get a list of wireless networks also without any problems.

The routine to store the data into Atom's memory is very straight forward:

Code: Select all

check if a byte is received
if not then
  increment time-out pointer
  if time out then end routine
else
  read it
  store it
  increment memory pointer
goto check


I'll post the exact code in the next days.
256K + 6502 Inside
MAN WOMAN :shock:

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Mon Nov 21, 2016 8:05 am

Hi Roland,

I've now ordered an ESP8266 module so I can help debug the lost characters.

It should be here in the next couple of days.

Dave

User avatar
oss003
Posts: 2537
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby oss003 » Mon Nov 21, 2016 8:12 am

Roland,

how did you connect the module to your Atom?

Greetings
Kees

User avatar
roland
Posts: 2782
Joined: Thu Aug 29, 2013 8:29 pm
Location: Born (NL)
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby roland » Mon Nov 21, 2016 8:25 am

Hi Kees,

I modified the serial interface of my second Atom2015. I left out the MAX232 and used some resistors to convert the levels.

Greetz,
Roland
256K + 6502 Inside
MAN WOMAN :shock:

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Mon Nov 21, 2016 9:34 am

roland wrote:I modified the serial interface of my second Atom2015. I left out the MAX232 and used some resistors to convert the levels.

When you get the chance Roland, can you look at what value resistors you used. I'll use the same.

Dave

User avatar
roland
Posts: 2782
Joined: Thu Aug 29, 2013 8:29 pm
Location: Born (NL)
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby roland » Mon Nov 21, 2016 8:03 pm

Here's what I did to convert the GODIL TX level and make all signals available at the cassette I/O connector:

  1. Solder a wire from the LM3940 output (pin 3) to pin 14 of socket U14. This brings 3.3V to pin 5 of the cassette I/O connector
  2. Place a 3k3 resistor between pins 13 and 15 of socket U14
  3. Place a 1k8 resistor between pins 11 and 13 of socket U14, the Godil TX is now at pin 4 of the cassette I/O connector and should go to RX of the WIFI module

The Rx of the Godil doesn't need a level conversion. This is the TX of the WIFI module which is 3.3V maximum. This is cassette I/O connector pin 4 (existing). The ground is at pin 2 (also existing).

I soldered the two resistors on a spare socket so the connections are stable and easy to revert.

But now that I wrote this down, I realize that there is no level conversion from the WIFI module to the Godil so it can't do any harm. Unless the signals are too low for the Godil.

IMG_1603.JPG
Click to view in right position
256K + 6502 Inside
MAN WOMAN :shock:

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Mon Nov 21, 2016 9:16 pm

roland wrote:Here's what I did to convert the GODIL TX level and make all signals available at the cassette I/O connector:

  1. Solder a wire from the LM3940 output (pin 3) to pin 14 of socket U14. This brings 3.3V to pin 5 of the cassette I/O connector
  2. Place a 3k3 resistor between pins 13 and 15 of socket U14
  3. Place a 1k8 resistor between pins 11 and 13 of socket U14, the Godil TX is now at pin 4 of the cassette I/O connector and should go to RX of the WIFI module

This bit all makes sense.
roland wrote:The Rx of the Godil doesn't need a level conversion. This is the TX of the WIFI module which is 3.3V maximum. This is cassette I/O connector pin 4 (existing). The ground is at pin 2 (also existing).

I soldered the two resistors on a spare socket so the connections are stable and easy to revert.

But now that I wrote this down, I realize that there is no level conversion from the WIFI module to the Godil so it can't do any harm. Unless the signals are too low for the Godil.

There is a slight danger here, because all pins on the GODIL have 1K5 pullups to 5V.

I don't know if this will be a problem or not in practice.

When the WIFI Tx is driving low, it will be sinking 3.3mA to GND, which should be absolutely fine.

When the WIFI Tx is driving high, then 1.1mA will be flowing from back into the 3V3 supply (via the GODIL pullup). This is more unusual. It's probably not enough to cause damage, but may be causing things to malfunction.

Dave

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Mon Nov 21, 2016 9:36 pm

Here's an interesting article:
http://www.ba0sh1.com/2016/08/03/is-esp ... -tolerant/

Based on this, I don't think a 1K5 pullup to 5V on the output will cause any problems.

But no guarantees! :shock:

Dave

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Wed Nov 23, 2016 3:38 pm

Roland,

My ESP8266 module arrived today.

I have a couple of questions:

- Can you post the latest version of your software?

- Are the only connections I need to make to the 4 pins on the module (3.3V, Rx, Tx and GND)?

Dave

User avatar
roland
Posts: 2782
Joined: Thu Aug 29, 2013 8:29 pm
Location: Born (NL)
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby roland » Wed Nov 23, 2016 10:24 pm

Hi Dave,

I have some additional connections:
  • pin IO5 is connected to GND
  • pin CHIP_CS is connected to 3.3V

The attached zip file contains the WiFi box (should be assembled with SALFAA and uses 65C02 instructions). The TERM is a terminal program written by Kees.

Greetz,
Roland
Attachments
atom-wifi.zip
(2.4 KiB) Downloaded 23 times
256K + 6502 Inside
MAN WOMAN :shock:

User avatar
oss003
Posts: 2537
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby oss003 » Thu Nov 24, 2016 7:35 am

IIRC this is the source file of the Terminal program.

Greetings
Kees
Attachments
term2015.zip
(5.32 KiB) Downloaded 19 times

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Sat Nov 26, 2016 5:32 pm

Hi Guys,

I have my ESP8266 wired up now.

Any clues how to get started with it?

Is it ready to use "out of the box" or do I need to flash some firmware to it?

What baud rate does it default to?

Dave

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Sat Nov 26, 2016 5:58 pm

This looks promising:

Code: Select all

AT+CWMODE=1

OK
AT+RST

OK

 ets Jan  8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x40100000, len 212, room 16
tail 4
chksum 0x5e
load 0x3ffe8000, len 788, room 4
tail 0
chksum 0x1c
load 0x3ffe8314, len 72, room 8
tail 0
chksum 0x55
csum 0x55
jump to user1

ready
AT+GMR
00170901

OK
AT+CWLAP
+CWLAP:(0,"",0,b8:55:ff:3f:00:00,0)
+CWLAP:(4,"VM538055-2G",-92,20:0c:c8:90:3f:88,1)
+CWLAP:(3,"BTHub5-RCH3",-92,00:91:f9:04:09:5c,6)
+CWLAP:(0,"BTWifi-with-FON",-91,c2:91:f9:04:09:5c,6)
+CWLAP:(0,"BTWifi-X",-92,e2:91:f9:04:09:5c,6)
+CWLAP:(4,"HogletHome",-72,00:18:39:30:d7:5a,10)

OK

This is with the Atom sending, and both the Atom and my Linux box receiving.

The Atom is definitely having trouble receiving though! Pretty much everything is garbled.

Dave

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Sat Nov 26, 2016 6:41 pm

Roland,

A couple more questions.

What firmware version do you have (AT+GMR)?

What the right AT command to change the baud rate?

Dave

User avatar
oss003
Posts: 2537
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby oss003 » Sat Nov 26, 2016 6:49 pm

Looks like changing the baudrate depends on the firware version:

https://www.google.nl/url?sa=t&source=w ... Fra3ayCfiw

Greetings
Kees

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Sat Nov 26, 2016 6:53 pm

Thanks Kees,

I have a question about your terminal program.

It seems to drop characters at baud rates greater than 1200 baud.

This is true for both the ESP8266 and my Linux machine.

Single characters are fine, but as soon as you send multiple characters (e.g. cut and paste) then most are dropped.

Is this your experience?

It's possible this is a GODIL bug, but it's also possible it a bug with the TERM program.

Dave

User avatar
oss003
Posts: 2537
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby oss003 » Sat Nov 26, 2016 7:13 pm

Yes, I noticed this also. I wrote this terminal program originally to communicate with a PC serial port as I demonstrated in Manchester:

http://www.retrosoftware.co.uk/wiki/ind ... csHBGW2012

It was used to display typed characters for serial communication which is very slow.
I think that the program can be improved to use the same technique as Type Ahead (keybord buffer) does.
This means buffering the input and the output to speed things up.

Greetings
Kees

User avatar
roland
Posts: 2782
Joined: Thu Aug 29, 2013 8:29 pm
Location: Born (NL)
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby roland » Sat Nov 26, 2016 8:11 pm

I tried to figure out the firmware version of my ESP8266 WiFi module but it won't communicate with my laptop any more :twisted:

I know that the AT+CIOBAUD is only available in newer firmware versions.
IIRC there were also firmware versions which had AT+BAUD and AT+IPR, maybe you can try one of these.

If I do an AT+GMR with the ESP to my Atom I get: 0020000903
256K + 6502 Inside
MAN WOMAN :shock:

User avatar
hoglet
Posts: 6479
Joined: Sat Oct 13, 2012 6:21 pm
Location: Bristol

Re: Atom with ESP8266 WiFi connects to the internet

Postby hoglet » Sun Nov 27, 2016 12:03 pm

Hi Roland,
roland wrote:I tried to figure out the firmware version of my ESP8266 WiFi module but it won't communicate with my laptop any more :twisted:

I know that the AT+CIOBAUD is only available in newer firmware versions.
IIRC there were also firmware versions which had AT+BAUD and AT+IPR, maybe you can try one of these.

If I do an AT+GMR with the ESP to my Atom I get: 0020000903

It seems you have a newer version of the firmware than mine: 00170901

Unfortunately, mine is fixed at 115,200 baud, but I proceeded anyway to try and get your test program working.

I found one small problem with the test program. It calls TX then WRCH for each character, but WRCH is so slow it sometimes misses the response of quick commands (like GMR). I tried changing the order to WRCH than TX, but that didn't help. I think this is because the ESP8266 starts executing the command on receiving the 0x0D, and you send an additional 0x0A, so by the time you start reading the response it's too late.

Anyway, I modified the program to include bother the sent and received data in the buffer, and then print the buffer after each command.

Here's the updated version of the program (you'll need to modify line 1050 back to your Wifi network):
WIFIDMB.zip
(1.62 KiB) Downloaded 12 times


Here's the result:
IMG_0761.JPG

IMG_0762.JPG

IMG_0764.JPG


The slight corruption at the start of each command is because the ESP8266 echo the characters sent to it, and because we are not dealing with that there is some overrun.

Other than this, I didn't notice any corruption or any lost characters, even with the INDEX command. Which is a shame, because the whole point of this exercise was to try to reproduce your problem.

Maybe we should both get onto the same ESP8266 firmware version.

I believe there is a cloud update command: AT+CIUPDATE, but I haven't dared do it yet. There were also some reports of the latest AT firmware being broken.

Dave

User avatar
oss003
Posts: 2537
Joined: Tue Jul 14, 2009 11:57 am
Location: Netherlands
Contact:

Re: Atom with ESP8266 WiFi connects to the internet

Postby oss003 » Sun Nov 27, 2016 1:46 pm

Hi Dave,

looks great but I think speeding up the WRCH routine and using a type ahead buffer saves a lot of time.
Jumping to WRCH: JSR#FFF4 takes 11072 usec without- and 11268 usec with scrolling in CLEAR0.
Maybe its faster in VDU80 but still takes a lot of time.

I timed the routine with this program:

Code: Select all

   10 REM TIMING PROGRAM
   20
   30 P.$21;P=#2800
   40[
   50 LDA@65
   60 LDX@#FF;STX#B805;STX#B804
   70  JSR#FFF4
   80 LDA#B804;PHA;LDA#B805
   90 STA#81;PLA;STA#80
  100 RTS
  110];P.$6
  120 LINK#2800
  130 P.#FFFF-!#80&#FFFF-7
  140 END

Greetings
Kees


Return to “acorn atom”

Who is online

Users browsing this forum: No registered users and 2 guests