Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:44 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : uM2(+): Wifi replaces USB for console?

     Page 3 of 4    
Author Message
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 02:08am 18 Apr 2016
Copy link to clipboard 
Print this post

Sorry I'm a complete idiot - I didn't check the most basic of things
As Mike said above the X must be ticked or it will only flash the file that has the X, it has to have all 3 of then ticked
Hopefully that may help someone else out

Matherp Thank you so much, your a genius! This means I can now mount my weather station outside and not have to bring it in to make changes to the software or when I want to try something new.
Edited by lew247 2016-04-19
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 11:40pm 25 May 2016
Copy link to clipboard 
Print this post

  MikeO said   Totally agree with Matherp. I have been using this program very successfully for some time, see my earlier post. One caveat, whereas MMEdit chat communicates fine I usually use Teraterm in conjunction with MMEdit and I could not get Teraterm to work reliably in this case (I have used Teraterm over TCP/IP previously ok).
Mike


Hi Mike,

I also had issues connecting to it with Teraterm.

It would connect, then drop me back to a prompt which was not the MMbasic prompt, but a prompt that talked to the ESP8266.

Got it working fine now & all I changed was service type in the Teraterm connection setup.

Don't know what it really means, someone else can maybe explain.




Cheers.

 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 03:54am 27 Jun 2016
Copy link to clipboard 
Print this post

Thanks Peter for letting us know about this program
it works great, I have programmed a Micromite several times with MMEdit and the ESP8266 Flasher
no console connected, just the ESP - brilliant for remotely positioned micromites
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 02:32pm 27 Jun 2016
Copy link to clipboard 
Print this post

  Phil23 said  
  MikeO said   Totally agree with Matherp. I have been using this program very successfully for some time, see my earlier post. One caveat, whereas MMEdit chat communicates fine I usually use Teraterm in conjunction with MMEdit and I could not get Teraterm to work reliably in this case (I have used Teraterm over TCP/IP previously ok).
Mike


Hi Mike,

I also had issues connecting to it with Teraterm.

It would connect, then drop me back to a prompt which was not the MMbasic prompt, but a prompt that talked to the ESP8266.

Got it working fine now & all I changed was service type in the Teraterm connection setup.

Don't know what it really means, someone else can maybe explain.



I've got 3 sitting about now, on different devices.
All working fine, with just the occasional hiccup.

I still do on odd occasions try to connect to one & find it at the ">" prompt I'd mentioned above.

Done a few searches, without any luck.

A reset always gets them going again, but not possible remotely.

Does anyone know of a command that can be issued from that ESP-Link prompt to get the device active again?

Cheers

Phil
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 04:58pm 27 Jun 2017
Copy link to clipboard 
Print this post

Thanks to all the above I have an ESP01 flashed with Esp Link and connected to Windows 7. Have found the module's web page with Chrome, but cannot find its IP address for use in MM Edit. Could some kind person please point the way?
TIA, Dave
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 05:11pm 27 Jun 2017
Copy link to clipboard 
Print this post

Your router should have a list all connected devices.

Jim
VK7JH
MMedit
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 05:41pm 27 Jun 2017
Copy link to clipboard 
Print this post

Thanks Jim but I dont have a router. I use a 4G dongle that so far as I know doesnt have config software.
Is there another way?
Dave
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 06:49pm 27 Jun 2017
Copy link to clipboard 
Print this post

If it's a USB dongle and doesn't allow more than one device to connect to the net at once, I can't help with it.
If so, I assume you have connected to the ESP with it acting as an access point.
What web address do you enter into Chrome to connect?
If you open a command prompt and ping that address, you should see the IP address.

I assume there is a way to get the ESP to tell you it's address but I haven't played with them for a long time.



VK7JH
MMedit
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 07:19pm 27 Jun 2017
Copy link to clipboard 
Print this post

Dave
if you open a command prompt window when the device is connected, then try both of the following commands

ARP -A

and

IPCONFIG /ALL

You don't need caps. That's just for clarity.
You'll see a few IP addresses. Have a punt around with them and see if you can pick the right one.
Bob
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 12:45am 28 Jun 2017
Copy link to clipboard 
Print this post

  TassyJim said   If it's a USB dongle and doesn't allow more than one device to connect to the net at once, I can't help with it.


Also, if the USB dongle is to connect you to the Internet, it only does that, it does not provide you with a local Wifi connection to the ESP.

So to over simplify it, the USB thing connects you to the Internet; that's one pipe...

Wifi is needed to connect to the ESP; a second pipe.

A bit more detail on the actual hardware/setup etc would help in offering a solution.



 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 10:24pm 28 Jun 2017
Copy link to clipboard 
Print this post

@Jim & Bob. Tried a Win10 machine and the IP showed straight up. Back in Win 7, a command promp let me ping that address ok, I think. So I believe I have the right IP, but neither Teraterm nor MM Edit will connect. Back to work...
@ Phil, hmmm, this gets tricky. The readme for ESP Link says "send Chrome to 192.169.4.1", which loads a sort of setup document from the module. No net connection needed.
Unfortunately this setup arrangement has lots of options, many of which I dont understand at all. And the wifi address is shown as 0.0.0.0
Happily there is also a console page, that will display the turn on message from my Mite, so something is working! But (there's always a but), I cant send anything from this console, so I'm still stuck.
Would I be Ok to start a new thread, looking for help with this setup document?
At the moment, it has me beat. D
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 12:02am 29 Jun 2017
Copy link to clipboard 
Print this post

I'll try and explain it a bit, but not quite sure of your understanding of networks.

You flash an ESP & it reboots.

It is then acting as an access point, bit like a router, but it can't supply an internet connection.

You connect to it with Wifi, it's IP address is 192.168.4.1.
It will set your PC to something on the same subnet, with an IP address like 192.168.1.2, where the bold bit indicated the subnet.

You can then get it to find your real router, and connect to it.
At this point the router gives the ESP an new IP address on the same subnet as the router & all your other PC's.

In my case it gives the ESP (by my choice, & another topic), 192.168.59.181.
My laptop is 192.168.59.21 & my desktop 192.168.59.11.

So now all devices are on the same subnet, the bold bit, and they can all talk.

Not sure if I'm helping or confusing the matter, but understanding networks & IP addressing should help.

Phil.
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 12:32am 29 Jun 2017
Copy link to clipboard 
Print this post

Many thanks Phil for the above. Is it your understanding that I MUST have a router to configure the ESP ?
I just want to use wifi to reprogram the mite.
Till now I have used a wireless dongle (no ADSL in the bush). I think the dongle might be usable over USB, which may let it serve as a router. Will test... D
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 12:56am 29 Jun 2017
Copy link to clipboard 
Print this post

Dave

I use a wireless dongle to access the internet in France but rather than plug it into a PC I have it plugged into a conventional router (I use a Draytek). The Draytek does all the usual handling of logging into the 3G/4G network but then gives full normal wireless router capability to any connected devices. This allows the dongle to be "shared" by as many devices as required and all the normal router facilities like NAT, VPN etc. to be used
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 10:26am 29 Jun 2017
Copy link to clipboard 
Print this post

Dave,

Even if you have not internet access, you can still, as you wish, connect to the Micromite with the dongle & the ESP.

The catch is it's usually the router which assigns an IP address to both the PC & the ESP once it goes into it's station mode.

If you have no router, then by default once the ESP exists it's AP mode (where it's providing the PC an IP address), there will be no device present to supply IP addresses.

So you will need to set the IP addresses manually yourself.
Bit like this.




In your case I'd be setting the PC to say 192.168.4.11 and then giving the ESP an station address of 192.168.4.1. (So it has the same IP when it switches to station mode).

Neither the PC or the ESP will need a gateway address, as that is the address of the device that connects to the internet.

So once all that's done, you will be able to connect to it In MMedit with 192.168.4.1.

The thing to understand here is that the ESP has 2 modes.

AP mode; where it gives your PC an IP address, and you configure it..

And Station Mode, where it expects some other device to give it an IP address.

So by setting your IP's as static, you will be able to connect to it in both modes.

I've got 9 ESP's running here & they are all have Static IP addresses.
192.168.59.181-189.
They connect to Micromites 1-9.

So all I do is choose the appropriate IP to connect.

And with Teraterm, I can have multiple copies open, each monitoring a different device.

Phil
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 10:38am 29 Jun 2017
Copy link to clipboard 
Print this post

This is what you need to reconfigure on your PC,

The IP4 settings.








Phil.
 
davematt
Regular Member

Joined: 27/09/2011
Location: Australia
Posts: 55
Posted: 02:28pm 29 Jun 2017
Copy link to clipboard 
Print this post

Success!
Many thanks Phil. Setup exactly as you suggested and now working just fine.
What a handy little widget!
Cheers, David
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1003
Posted: 03:16am 18 Aug 2017
Copy link to clipboard 
Print this post

I am not sure if its been mentioned somewhere before, but I have connected GPIO-0 on the ESP-01 to the RST on the MicroMite and can successfully hard reset the MM via the ESP-LINK console. I am using esp-link v2.2.3. Handy if you find you need to remotely reset.


Latest F4 Latest H7 FotS
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1003
Posted: 06:13pm 08 Sep 2017
Copy link to clipboard 
Print this post

Remote Reset via ESP-LINK
I have found if you have a MicroMite (eg E100) with a supervisory chip you need to use a schottky diode in series when connecting the ESP01 GPIO-0 to the micromite RST pin.
RST --->|---- GPIO-0

This stops the supervisory chip pulling GPIO-0 low at first power up and putting the ESP8266 in program mode.(Well that is what I think happens, but the ESP8266 wont talk on power up without the diode)

Seems to work with the diode.

GerryEdited by disco4now 2017-09-10
Latest F4 Latest H7 FotS
 
Alastair
Senior Member

Joined: 03/04/2017
Location: Australia
Posts: 161
Posted: 12:51am 04 Dec 2017
Copy link to clipboard 
Print this post

Ok experts I am getting ready for when my esp-8266 modules arrive in the next few days.

My aim is to use them like Phil to remotely access my various MM boards to do updates and debugging.

I have ordered 5 ESP-01S modules plus the test board to simplify flashing. I have also ordered the boards to make the pinout more accessible but that does not matter here.

Protocol to be followed as per matherp and phil et al.

1. Connect up the esp-01s using a quality 3.3v supply via the test board

2. Use esp_basic_flasher to erase the esp just to make sure

3. Use the NodeMCU Flasher to flash the 3 parts of the esp_link binaries (v2.2.3)
nb the check boxes and load addresses
use the test board to get the right mode and reset
set flash size & baudrate on advanced tab

4. Reset esp

5. follow github instructions to configure for my wifi network.
this part is not so clear yet but should be better when I can actually see it

6. Setup MMedit session - issues re baudrate and setting of a fixed IP address vs the MAC address on the router not yet clear until I have played.

Hopefully the above will get me going.

Have I missed something?

I expect I will have problems at the last stage and will call for help.


Cheers, Alastair
 
     Page 3 of 4    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025