ESP8266 - transfer some bytes PC<>PIC over wifi


Closed Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,624

    Default Re: ESP8266 - transfer some bytes PC<>PIC over wifi

    Quick note about something I re-learned yesterday.
    It started when I tried to update the firmware of my ESP-01 module, it only has 4Mbit of FLASH so it did not work. Dug out an ESP-12F module and loaded 2.2.1.0 onto it. Flashing it worked fine but I could not get it to "work". Then I remembered...

    Somewhere in the firmware history the default UART-pins for AT command have changed from GPIO.0/3 to GPIO.13/15.

    GPIO.0/3 are still used to PROGRAM the thing but AT commands are now accepted on GPIO.13/15.

    On version 2.2.1.0 CWLAP works in CWMODE=1 and CWMODE=3 without first connecting to an existing network. It also has AT commands for managing MQTT (don't know when those commands were added).

    I have a command reference dated 2020 which includes the MQQT commands but no longer contains the command CWMODE. Instead it references CWMODE_DEF and CWMODE_CUR however neither of these work. Online documentation here is back to just CWMODE.

    So yeah, it's a bit of a mess....

  2. #2
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952

    Default ESP8266 - transfer some bytes PC<>PIC over wifi

    There's quite a jungle of firmwares available for these ESP modules.

    Which one should I use? Which one will allow me to "simply" send and receive a few bytes back an forth between a PC and a PIC?

    If I already have a project doing the same (transferring bytes) but using Bluetooth HC-05 modules, will I be able to replace these Bt modules by the Wifi ones and it will work like 1:1 or is it not possible?
    Roger

  3. #3

    Default Re: ESP8266 - transfer some bytes PC<>PIC over wifi

    There's quite a jungle of firmwares available for these ESP modules.

    Which one should I use? Which one will allow me to "simply" send and receive a few bytes back and forth between a PC and a PIC?
    That is what I found about these 8266's. Plus I wanted to just deal with the serial/data/programming with the PIC and not have to add all the CWxxx's in the communications back and forth. So, the Jeelabs thing did that...... Programming these 8266 is about the same with different methods, I used the Espressif tool to put 4 files at the specified locations on the 8266. The Jeelabs page has files for the 8266-1 and -12. Sometimes had to flash 2 times to get the program to take..... after programmed, you open the onboard web page to make all the network settings.... then everytime it is powered up, it automatically hooks to the network you had set it for and waits for a connection and then automatically sends and receives serial stuff. Plus, you can access your PIC from local or anywhere in the world with internet. I was looking for others ideas for the routines/programs on the PIC plus apps or program on PC for easy simple comms for simple micro-controllers.
    Name:  esp.JPG
Views: 10904
Size:  98.4 KB
    Last edited by amgen; - 31st December 2023 at 15:41.

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952

    Default ESP8266 - transfer some bytes PC<>PIC over wifi

    Amgen,

    Would you please share the firmware you've installed?

    I tried so many that didn't work....
    Roger

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952

    Default ESP8266 - transfer some bytes PC<>PIC over wifi

    BTW, ESPRESSIF seem to have a firmware, the ESP-WROOM-02 Series that should fit the ESP8266 according.

    https://docs.espressif.com/projects/..._binaries.html


    It looks very easy to download the firmware to the module since one can choose between multiple .bin files (for the "experts" I presume) or a single .bin file (for th rookie I am )

    The download process runs well with the ESP8266 FLASCH DOWNLOAD TOOL v3.9.5 but once the download is done, an error will always occur - must be some data copy check that doesn't accept the final result.

    So, still stuck and searching....
    Roger

  6. #6

    Default Re: ESP8266 - transfer some bytes PC<>PIC over wifi

    If this comes through, here is the zipped 4 files to load and the screen shot for the locations they have to programmed to. I believe all this is still on Jeelabs git pages.
    I'm sure you know that the program files need to be referenced in the folder you have put them.
    '
    one more edit for you...... if I remember?!@#...... had to check/box the 'DOUT' ... it was little tricky but once you get it it goes easy
    '
    Flash.zip
    Last edited by amgen; - 1st January 2024 at 19:11.

  7. #7
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    952

    Default ESP8266 - transfer some bytes PC<>PIC over wifi

    Thanks a lot Amgen, I'll give it a try tonight.

    Until then, just a question about your addresses: are these really correct?

    Name:  2024-01-02 08_56_42-Good config 12-20.jpg
Views: 5394
Size:  100.3 KB

    ...or does it just doesn't make any change if they have one trailing zero less?
    Roger

Similar Threads

  1. WiFi to setup a PIC based device
    By Ioannis in forum WiFi
    Replies: 6
    Last Post: - 2nd December 2023, 14:31
  2. Serial to WiFi <> Wifi to virtual com port
    By flotulopex in forum WiFi
    Replies: 11
    Last Post: - 4th April 2018, 14:18
  3. Replies: 22
    Last Post: - 5th January 2012, 07:49
  4. Wifi & PIC
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th December 2010, 04:16
  5. PIC with WIFI module
    By JAWORSKI in forum Schematics
    Replies: 2
    Last Post: - 3rd December 2008, 04:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts