|
Forum Index : Microcontroller and PC projects : ESP WiFi modules?
| Author | Message | ||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3471 |
If you did not provide it an IP on your network when you flashed it, and WIFI credentials, then you should be able to see it being an access point when you look at available WIFI APs. If you connect to it, it will give you an ip like 192.168.4.2. The APs ip is 192.168.4.1. If you go in your browser to that IP and go to the CONFIG page, you can set your wifi credentials and also set a fixed IP on your network (which I always do). Save and reboot and after half a minute or so, go in your browser to the IP you set. In the EDIT window, you enter your code and run, viewing "wlog" output. ~ Edited 2020-06-16 21:19 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
palcal![]() Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006 |
@ lizby Thanks for the help, I made the mistake of using the GREEN button to flash, I erased and used the YELLOW button, it asked for my WIFI credentials and I re flashed. So now I can access the EDIT window with the new IP address, but still no luck with sending an email. I have a Gmail a/c and entered the info exactly as shown in the 'How To' in Annexe. I save the code but when I run it prints a 0 not a 1. I have been into my Gmail account and switched on less secure access. Edit... The code I used is EMAIL.SETUP "smtp.gmail.com", 465, "me@gmail.com", "Pword" print EMAIL ("from_me@gmail.com", "to_me@mysticsands.org", "Title - Alarm", "Alarm has been activated") Edited 2020-06-17 10:34 by palcal "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3471 |
I no longer remember exactly why, but I use EMAILASYNC instead of EMAIL (after EMAIL.SETUP). EMAILASYNC ("from_me@gmailcom", "to_me@compuserve.com", "Message from annex", "Hello from 117") I think at some point I read a post which said that this could resolve some problems. But with another module running openwrt linux I had run into problems using gmail because of the security issue--I don't remember how I resolved it. Edited 2020-06-17 10:59 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
palcal![]() Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006 |
Thank for the help I now have it running OK. In my code above I have 'from_ and to_' exactly as per the example. I deleted to 'to_ and from_' and it now works OK ??? As for the security issue you have to go into Google account settings/security and set Less Secure to ON Checked EMAILSYNC it means the request is handled in the background. Edited 2020-06-17 11:45 by palcal "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
Question Which version of Annex do you download? Thanks Brian ChopperP |
||||
Grogster![]() Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9755 |
I have some modules on order, but until they actually get here, I cannot do any playing about with them. I have been reading about the different firmwares people have come up with though. I will post back on this thread once my modules arrive, and I can then do some tinkering. In my case, all I want is a network serial-port, that I can connect up to a MM chip's console pins and talk to the chip via the network. Nothing more fancy then that. I'm hoping that will just be one of the options I can set from the web-interface the module lets you logon to, but I have not read far enough in the docs to confirm that yet. If anyone else(lizby?) has setup modules like that, please let me know on this thread, so I can study up on what I have to do, while waiting for the modules to arrive. Smoke makes things work. When the smoke gets out, it stops! |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1045 |
This post on TBS describes using ESP8266 as network serial port. I use these on most of my mites, so no cables required. TBS post for setting up to access console via TCP/IP F4 H7FotSF4xGT |
||||
palcal![]() Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006 |
@ Chopperp Go to download go to the bottom and you will see STABLE DOWNLOADS and click on one. I think I have 1.40 Edited 2020-06-17 16:38 by palcal "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
Thanks palcal. Appreciated I might give disco's method a try first. It's more what I am after (I think) ChopperP |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
@ disco4now or anyone I'm totally confused. How & what to do you actually connect the module to to program it? I assume you use a USB to TTL converter? I've obviously missed something. Brian ChopperP |
||||
palcal![]() Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006 |
@ Chopperp connect to your computer usb port, open Annext Tool Kit and click on the yellow button. It will ask for your WIFI credentials which I found by logging into my router. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
@palcal So it just gets connected as you would a uMite. Mine's got 8 pins. Some are obvious. Some are not. Is there a connection diagram somewhere? I know nothing!!!! I need Step 1 Also, I'm not really understanding what & why we are flashing stuff. Edit I have found a wiring diagram that sort of makes sense. Brian Edited 2020-06-17 18:53 by Chopperp ChopperP |
||||
| disco4now Guru Joined: 18/12/2014 Location: AustraliaPosts: 1045 |
I use this circuit from here. You connect to it with a USB to serial adaptor. Hold the flash button down and reset to get it in programming mode from memory. Using 5V to power the ESP-01 could damage it beyond repair. My USB adaptor had 5v out so I put a 3.3v regulator on the adaptor board. ![]() Also one from Banggood that has USB inbuilt. You need to add the buttons to it I think. Edited 2020-06-17 21:12 by disco4now F4 H7FotSF4xGT |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3471 |
I use a breadboard version of disco4now's circuit (but without the regulator--I power it from 3V3 off of an 18650 battery). I would not be certain that 5V off of a USB/Serial module would always be beefy enough (but if it works, it's "good to go".) I also use the adapter with mods shown here It allows you to flash the Annex firmware to the ESP-01 without the RST and FLASH buttons. Grogs--The AT commands you need are likely to work on the ESP-01 out of the box regardless of what version the device has been flashed with. I don't know, though, whether greater range or stability or lower current usage can be had with the Version 2 software. You can hook up 0V, Rx, Tx, and sufficient 3V3 to a usb/serial module, connect at 115200 with puTTY or other, and test AT commands from your PC, e.g., AT<Enter><Ctrl-J>. Here's a pinout image that I keep handy: ![]() ~ Edited 2020-06-17 22:02 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
Thanks disco4now & lizby Great stuff. I checked my USB to serial converter. Although it says it was the 3.3V version, the V+ was at 5V. Sig lines at 3.3V. Definitely use a regulator Good pinout image. Still not sure on what & why we are programming it for. Thanks again Brian ChopperP |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3471 |
With a picaxe, I've used it in AT mode for serving web pages And flashed with Annex, for MQTT matherp has one or more threads on serving web pages with MMBasic. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
@ lizby Thanks for that. Needs pondering. What's MQTT? & I assume serving web pages means sending & receiving data to & from them. What I think I want to do is to be able to get data from an F4, say a *.cvs file to another PC via wireless on a network, or for the F4 to send data to be received by a PC on the network by browser or whatever. I don't know enough to know what can & can't be done & how to do it. Probably dead easy once you do know how. I saw some of matherp's threads but found them hard to follow at the time. Regards Brian. (Time for bed) ChopperP |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3471 |
MQTT is a mesh network with a publish/subscribe architecture for passing messages around. A "broker" accepts messages on a given topic which some device has "published"; other devices which "subscribe" to the topic will have messages forwarded to them. I have a broker, "mosquitto" running on a raspberry pi zero. I have clients on picaxes, Annex ESPs, and my laptops which can publish messages or subscribe. In my case, messages can turn on and off and dim 12V LED lights. MQTT would not be the ideal way to pass a file, but easily could pass individual lines in a CSV file as they are created if they were, for instance, the result of sensor readings. I haven't tried it, but if you have an AT-command-based web server on an F4 (as in matherp's examples on other MM devices) you should be able to code the server to serve a file, which could just be a CSV file. Hmmm--I wonder what the wget command looks like to an MMBasic web server? Of course, you can use xmodem to transfer a file from the console, but if you want to do it unattended with wifi, you should be able to manage it with MMBasic and an ESP-01 or ESP8285. ~ Edited 2020-06-18 01:05 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
palcal![]() Guru Joined: 12/10/2011 Location: AustraliaPosts: 2006 |
@ Chopperp Sorry I mistakenly assumed you had a module like mine with a usb connector. "It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all" |
||||
Chopperp![]() Guru Joined: 03/01/2018 Location: AustraliaPosts: 1106 |
@ palcal. No worries. I didn't know that there was a USB one until the other day. ChopperP |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |