Jump to content
IGNORED

SIO Wifi modem with esp8266


mozzwald

Recommended Posts

Found my problem, baud rate reverted back to original 2400. Grrrr. :mad:

 

Okay once again I tried to get the ESP-01 to connect to my rtr. Using a Windows 10 laptop currently connecting wirelessly to my rtr, i tried the direct route by typing in

 

ATW"XXXXXXX","XXXXXXXX"

 

I get "ERROR" after a minute or so.

 

when I try AT+CONFIG

 

I get a menu

 

[WIFI] connection: Not connected

 

plus other items

 

so I type in

 

WIFI and press return

 

i get the menu repeated.

 

There's no description in the github readme of exactly what the command entry structure looks like for the config menu. I was connecting automatically to my rtr on the old firmware.

Edited by Dropcheck
Link to comment
Share on other sites

Great! so you got it! The zimodem firmware worked for you. I mean at least is booting up.

Sorry but the new firmware is totally different: different commands, etc. And it also overwrite every previous settings. So, first connect to 2400 baud and then you can start using the menu (at+config) as you did. You can set the wifi and when exit the menu, save the config.

WRT the baud rate use atb1200 or atb9600. if it work at&w will save it.

I have never used the atw way of setting the wifi. I just did it with the menu, I know I dont remember the menu that good, since I just use it to add entries to the address book.

But it was something like press 1 or the number for wifi, then connect to wifi or something like that, then the module will scan for wifi networks, then you select the one you want and then enter the password. something like that. Then the last option is to exit to main menu, then I choose address book, then you put broadway1.lorexddns.net:23 then assign a number ex: 777. And so on, and at the end you exit the main menu and it will ask if you want to save config.

That's it.

So you are very close to make it. I am glad that we have confirmation it is (kind of) working for someone else. Sorry that I forget to say that the default baud rate is 2400 after writing the new firmware.

Edit: I re read you post, maybe I am wrong and there is no numbers for each option, maybe it is just the first letter, like w [Return] for WIFI. Tell me if that works. I don't have access right now to my SIO2Wifi Thing to check.

Edited by manterola
Link to comment
Share on other sites

Great! so you got it! The zimodem firmware worked for you. I mean at least is booting up.

Sorry but the new firmware is totally different: different commands, etc. And it also overwrite every previous settings. So, first connect to 2400 baud and then you can start using the menu (at+config) as you did. You can set the wifi and when exit the menu, save the config.

WRT the baud rate use atb1200 or atb9600. if it work at&w will save it.

I have never used the atw way of setting the wifi. I just did it with the menu, I know I dont remember the menu that good, since I just use it to add entries to the address book.

But it was something like press 1 or the number for wifi, then connect to wifi or something like that, then the module will scan for wifi networks, then you select the one you want and then enter the password. something like that. Then the last option is to exit to main menu, then I choose address book, then you put broadway1.lorexddns.net:23 then assign a number ex: 777. And so on, and at the end you exit the main menu and it will ask if you want to save config.

That's it.

So you are very close to make it. I am glad that we have confirmation it is (kind of) working for someone else. Sorry that I forget to say that the default baud rate is 2400 after writing the new firmware.

Edit: I re read you post, maybe I am wrong and there is no numbers for each option, maybe it is just the first letter, like w [Return] for WIFI. Tell me if that works. I don't have access right now to my SIO2Wifi Thing to check.

 

No luck. :(

 

I can get the menu to display, but there's no numbers to enter. I tried typing in WIFI and had it echo to the screen in the serial monitor, but no other response.

 

When I do an "ATW" it will list the available networks, but there's no way to chose which to use.

 

It would be nice if there was a youtube video or even a blog post covering the config menu operation, but the only thing I've seen is the menu selection screen itself. It's as if the poster never went beyond the menu display.

Link to comment
Share on other sites

and just w [Return]? I wish I had my Atari around to check,

Edit: I checked the source code in github and you need to use the first letter, look:

if(c=='a') // add to phonebook
{
currState=ZCFGMENU_NUM;
showMenu=true;
}
else
if(c=='w') // wifi
{
currState=ZCFGMENU_WIMENU;
showMenu=true;
}
else
if(c=='h') // host
{
currState=ZCFGMENU_NEWHOST;
showMenu=true;
}
else
if(c=='f..... and so on.
Edited by manterola
Link to comment
Share on other sites

and just w [Return]? I wish I had my Atari around to check,

Edit: I checked the source code in github and you need to use the first letter, look:

if(c=='a') // add to phonebook

{

currState=ZCFGMENU_NUM;

showMenu=true;

}

else

if(c=='w') // wifi

{

currState=ZCFGMENU_WIMENU;

showMenu=true;

}

else

if(c=='h') // host

{

currState=ZCFGMENU_NEWHOST;

showMenu=true;

}

else

if(c=='f..... and so on.

Not getting there yet........ :(

 

Here's a print out of that attempt.

 

at+config

OK

 

Main Menu

[WIFI] connection: Not connected

[FLOW] control: RTS/CTS

[ECHO] keystrokes: ON

[bBS] host: OFF

[PETSCII] translation: OFF

[ADD] new phonebook entry

 

Enter command or entry or ENTER to exit: ⸮w

 

Main Menu

[WIFI] connection: Not connected

[FLOW] control: RTS/CTS

[ECHO] keystrokes: ON

[bBS] host: OFF

[PETSCII] translation: OFF

[ADD] new phonebook entry

 

Enter command or entry or ENTER to exit:

 

C64Net WiFi Firmware v3.4

sdk=2.2.1(cfd48f3) chipid=1335429 cpu@80

totsize=1024k ssize=338k fsize=51k speed=40m

INITIALIZED

READY.

w

Link to comment
Share on other sites

unless you have determined what pins are RTS and CTS.... you will have to set that to software X on X off or none.. else nothing will happen when in terminal if firmware is honest

 

That might be true for modem operation, but I'm not into that part yet. I'm working with the wifi configuration still, which does not pay attention to modem flow control. But just to verify I was able to turn CTS/RTS off, set Xon/off, No change.

 

Something else is at work here.

Link to comment
Share on other sites

So you can change flow control, but not the {w}ifi config? i.e. f worked but not w?

I didn't use the menu options. I used the ATFn commands. Many of those commands seem to work. But not ATW "SSID","PASSWORD" etc. None of the menu commands seem to work. The most I get is equivalent to repeating the AT+CONFIG command ie it just relists the menu display.

 

Is it possible that the flash did not complete correctly?

Link to comment
Share on other sites

Maybe with one pair of quotes only? like: ATW "SSID,PASSWORD"

Your problems with the menu could be due to translation settings in your terminal program? like parity, or ascii, atascii, ibmpc, vt100 , etc.

I would use plain ascii, but try changing that to see if the menu accept your selections.

Edited by manterola
Link to comment
Share on other sites

oh kyle22 bbs?

 

broadway1.lorexddns.net port 23

 

73.154.49.234 23

 

you can go to Alcatraz or any number of bbs's to download though, pick the time of day that your internet is the best to do so...

 

Thanks, I guess so.

I give it a try to download "laststarfighter", without loosing data, save it.

Using a rverter-type modem and diskdrive, both on SIO, without loosing R: activity.

 

Setup:

Atari 800XL/ESP8266-2400baud/1050.

 

More news later today, if time permits...

 

Grtz,

Sijmen.

Link to comment
Share on other sites

oh my, I see star raiders, but not last starfighter.... I must dig it up and upload it... oh my...

so

b for browse

2 for elite

c for 15 at a time

m for mark even if downloading a single file

y for y modem

n no need to arc

y modem again (f modem is for folks with little latency of jitter and faster baud rates, 4k packets,, not recommended for iffy internet connections)

  • Like 2
Link to comment
Share on other sites

 

 

 

All I did:

 

-connect at 1200

 

ATB"9600,8N1"
ATW"your-wifi-sid,your-wifi-pw"
AT&W
- reconnect at 9600
ATI
shows you your internet config/status

 

Just confirmed flashing one of my nodemcu boards and trying these commands: all works ok...

ATI   

Zimodem Firmware v3.4                     
CoCoWiFi Version.                 
sdk=2.2.1(cfd48f3) chipid=1458280 cpu@80                                        
totsize=4096k ssize=336k fsize=1048503k speed=40m                                                 
CONNECTED TO AtariOnly (192.168.1.11)                                     
READY.      

at+config         
OK  

Main Menu         
[WIFI] connection: AtariOnly
[FLOW] control: DISABLED
[ECHO] keystrokes: ON
[BBS] host: OFF
[PETSCII] translation: OFF
[ADD] new phonebook entry

Enter command or entry or ENTER to exit:

After flashing, I pressed the reset button on the board and ran hyper terminal in windows @ 1200 baud. The debug code was sent first, then a 6 second pause before showing the correct info. With the ESP-01, I might not have waited long enough before to see that message. Will now try flashing the ESP-01again with zimodem and see how it goes...

  • Like 3
Link to comment
Share on other sites

using lantronix this was the behavior ... try with esp

looks like last starfighter was uploaded..

the upload was done at 2400 baud and no flow control...

using y modem batch...

I downloaded it using y modem at 2400 and no flow control...

the crc and block method of the protocols are their own form of flow control... block go across the net and waits for crc if it passes next block goes...

so no software flow control should be set for upload download.. just in case the file contains control s etc to upset the flower cart.

Haven't checked using the built in bbs compression with soft flow yet....

 

best result has been letting the u/l protocol use it's own error detection/correction be the flow control ;)

 

so with soft flow off the board looked fine and upload download worked fine... even with miss matched baud rates... the devices take data at full speed to their buffer and regulates the baud rate out from there... so my terminal looked just fine, just didn't have the snappy per character manual stop and start without it but all was fine.

Edited by _The Doctor__
Link to comment
Share on other sites

Just for reference and for any others that want to flash their ESP-01 with Zimodem using Windows XP and maybe higher, I used this program with these settings:

 

post-26874-0-40526800-1538365891.png

flash_download_tools_v2.4_150924.rar

 

zimodem.ino.generic-3.4.bin

 

I'm now using Express! terminal cartridge.

 

Zimodem connected

post-26874-0-93799600-1538367065_thumb.jpg

 

Confic screen

post-26874-0-32179400-1538367053_thumb.jpg

 

Main menu with no glitches in display

post-26874-0-24899300-1538367040_thumb.jpg

 

 

  • Like 3
Link to comment
Share on other sites

Have this coming in hopefully by the end of next week. Big thing about this is the ability to add an external Antenna and it is switchable between programable and UART modes. It is a little more expensive, but not much. External antennas run around the same as the module.

ESP-07v1Module.jpg

This is WiFi serial transceiver module, based on ESP8266 SoC.The SOC has Integrated TCP/IP protocol stack.It is TTL serial communication interface and its parameters can be set by AT command. It is widely used in networking, smart home project when it is connected to the wifi router. It can be used for remote monitoring of home appliances, bedroom temperature and humidity, controlling home appliances and smart car by the mobile phone.

Arduino UNO R3 and the compatible board can directly connect to this module.

Interface logic voltage: 3.3V / 5V compatible(On-board level shift circuit)

Working voltage: 4.5V - 5.5V (On-board 3.3v LDO Regulator)

Working current: 240mA(MAX)

Serial port baud rate: 115200 (default), can be modified to other values by AT command

Serial communication format: 8N1

On-board reset button

On-board switch to select UART mode or firmware update mode

Antenna Type: Built-in ceramic antenna is available, and you can also use an external antenna.

Wireless Network Mode: station / softAP / SoftAP + station

Wireless criteria: 802.11 b / g / n

WIFI @ 2.4 GHz, support for WPA / WPA2 security mode

It is very easy to design projects by AT command

Applications: Home automation, sensor networks, industrial wireless control, smart car.

Package Included:

1PC*Serial Wifi module

Okay, a long overdue report on this board.

 

The board supposedly was located in the USA, but took the seller took almost six days to actually ship it and a full ten days from purchase to arrival. I was able to connect it up to my Arduino 2560 serving as a USB to TTL translation. The firmware was AI-Thinker and not terribly old. The board responded to the standard AT commands and I felt relatively confident that it would connect to a BBS since it connected well with my WIFI router, however I did not test it. I decided to test out the ability to flash the firmware to Zimodem. As you can see it appears to have that ability by just switching to the programming position on the slide switch. My experiences did not match my expectation.

 

Using the same flashing tool, esptool.py, I had used with the ESP-01 module, I tried to flash the new firmware. Now the chip on the board is the same as the ESP-01 and the AT+GMR command had reveled the same size flash, the only real difference is the external antenna option. So I was disappointed when the flash operation failed. It got even more painful when I realized that I'd apparently bricked the board in the process. I tried erasing the SPI flash memory with the erase_flash command, but that failed with a communication error too. I then tried using AtariGeezer's method and it failed as well.

 

Perhaps sensing that I might run into problems or maybe just wanting to have an original version as backup I had purchased another one from another Ebay vendor. It came from China and arrived within a day of the USA sourced board. But alas, it would not even work in the normal UART position. Either another failed flash from the seller or it never had a firmware on it I don't know.

 

The bad part about this particular board version is that there is almost nothing written on it. I've done a reasonably expansive Google search, and so far I haven't found anything on the board, just the ESP-07 basic information.

 

The failure with this board was not particularly an expensive one, thank goodness, but it smarts just the same. I might be able to cobble together a jig to go direct to the chip and be able to do a brute force erase and program, but it kind of defeats the reason to get a board with a programming switch. :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...