ESP8266 - transfer some bytes PC<>PIC over wifi


+ Reply to Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

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

    Hi there,

    I'd like to transfer a config ".TXT" file (it's a bunch of 100 bytes or so) from my PC to a PIC over wifi.

    So first things first: power it up and find some AP to connect to.

    BTW, this is the very common module I have, the ESP-01S:
    Name:  ESP-01S.jpg
Views: 316
Size:  20.7 KB


    My first action is to get connected to the wifi, but I always get an error message when trying to list the networks (I can see at least five APs on my mobile):

    Name:  Ai-serial.jpg
Views: 321
Size:  38.6 KB


    Has this "ERROR" something to do with the firmware? There are so many versions out there (mine looks already old...2015...) that I don't know where to look at for a start....
    Roger

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

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

    Okay, for now, I'm trying to get started with this piece of info https://www.instructables.com/Gettin...SP8266-ESP-01/

    🤞
    Roger

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,847

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

    Have you found what caused the Error?

    Very interesting instructable link. Thank you!

    Ioannis

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,531

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

    Have you tried with CWMODE = 3?

    Also, see this:

    https://stackoverflow.com/questions/...ith-no-details

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

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

    Quote Originally Posted by HenrikOlsson View Post
    Have you tried with CWMODE = 3?
    No. I'll give it a try when I'm back from office.
    Roger

  6. #6
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,531

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

    I tried with an old module I had laying around.
    I got the same issue no matter which CWMODE. But in the Stackoverflow post I linked to user urbanSoft (so all credit to him) writes:
    That AT+CWLAP returns an error without any prior connection is desired behaviour.
    The doc states that "AT+CWLAP connects an ESP station to a targeted AP with the last Wi-Fi configuration."

    Since there is no last Wi-Fi configuration an error is returned.
    So I tried that by connecting it to my network using AT+CWJAP="myssid","mypassword" and after that CWLAP worked as expected.

    My module is really old with stock firmware. AT commands have changed and been added over the years so don't expect any and all examples you find on the internet to just work if they don't match the firmware.

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

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

    Quote Originally Posted by HenrikOlsson View Post
    Have you tried with CWMODE = 3?
    ...as you suggested, I tried with mode 3 and:

    Name:  ESP8266 Wifi OK.jpg
Views: 265
Size:  61.2 KB

    Thank you very much Henrik
    Last edited by flotulopex; - 29th December 2023 at 15:49.
    Roger

  8. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

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

    Quote Originally Posted by Ioannis View Post
    Have you found what caused the Error?
    Unfortunately, no.

    Still searching....
    Roger

Similar Threads

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