ESP8266 - transfer some bytes PC<>PIC over wifi


+ Reply to Thread
Results 1 to 25 of 25

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    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.

  4. #4

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

    do anyone want to try the ESP8266 programmed to be serial to WIFI 'bridge' ?? This is a few years old but all the info and files seem to be available.
    Here is the link for github page

    https://github.com/jeelabs/esp-link/...ster/README.md


    I would post about any issues I had or suggestions if anyone wants or needs that.

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

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

    Quote Originally Posted by amgen View Post
    do anyone want to try the ESP8266 programmed to be serial to WIFI 'bridge' ??.
    Amgen, what exactly is a "bridge"? Is it what I actually want to achieve = send (small amount of) data, both ways, between a PC and a PIC over Wifi?
    Roger

  6. #6

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

    Amgen, what exactly is a "bridge"? Is it what I actually want to achieve = send (small amount of) data, both ways, between a PC and a PIC over Wifi?
    Yes, instead of bridge, could use 'connection'......... what program or app would you use on the PC to receive and send data?

  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 amgen View Post
    what program or app would you use on the PC to receive and send data?
    Don't know yet.

    I think I'm going to use some kind of mobile Terminal app or, if possible, a web browser or even make one by myself with MIT App Inventor which I'm already on my way but using Bluetooth for now which I'll need to change to wifi, obviously.

    Attachment 9528

    I've no idea what will be the simplest and fastest to achieve...

    It's really just about to send some data to a PIC, have the PIC acknowledging and storing if datat is okay. Voilą.
    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 HenrikOlsson View Post
    Have you tried with CWMODE = 3?
    ...as you suggested, I tried with mode 3 and:

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

    Thank you very much Henrik
    Last edited by flotulopex; - 29th December 2023 at 15:49.
    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