Home Page Forums Tinylab ESP8266 WIFI MODULE CONTROL WITH TINYLAB

This topic contains 0 replies, has 1 voice, and was last updated by  gtinylab 1 year, 10 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #189

    ozgurtzc
    Participant

    ESP8266 WIFI MODULE CONTROL WITH TINYLAB

    • To configure the module; navigate to File>Example>Communucation>Multiserial and change the line Serial1.begin(9600) to Serial1.begin(115200). After changing the code, upload to code to Tinylab via Arduino IDE.
    • The Serial Monitor must be configured as shown: Click here
    • If you AT to the line of instructions of Serial port monitor, the ESP module will return you with a message OK. This message means that you can communicate with the modul
    • You can find out the version of your module with the command: AT+GMR.
    • We can obtain the current mode module runs at with the command AT+CWMODE?. The module will return with 1,2 or 3. If the modul return with 1, it is in STA mode and it is the mode which we will use. It means the module can communicate with other networks. There are two more modes apart from the STA mode, called Access Point(AP) and the mode that uses these two modes together.
    • We have to give the command AT+CWMODE=1 to enter the modul in STA mod, thus we can connect to the other networks in the context.
    • We can list all the network connections with the command AT+CWLAP
    • We can unlink the wi-fi connection with the command AT+CWQAP and we can find out the IP address that we use with the command AT+CIFSR. Click here to view all commands about the module.

     

    You can glance this album:

    http://imageshack.com/a/img923/2154/grr5lO.png
    http://imageshack.com/a/img924/3788/O8UUXw.png
    http://imageshack.com/a/img921/4168/SjR4wm.png

    • This topic was modified 1 year, 7 months ago by  İsmet Ergin.
    • This topic was modified 1 year, 5 months ago by  Mustafa.
    #200

    gernot.abel
    Member

    works thanks for sharing

    – now I need to figure out how to upload to the ESP8266

    at
    OK
    AT+CWLAP

    +CWLAP:(3,”R146983″,-75,”5c:96:9d:64:01:57″,1,6)
    +CWLAP:(3,”ZyXEL3B1821″,-87,”4c:9e:ff:3b:18:22″,4,8)
    +CWLAP:(2,”9NJDuMtS”,-91,”48:5b:39:3b:23:4e”,4,13)
    +CWLAP:(3,”Telenor355DEB”,-75,”30:91:8f:35:5d:eb”,6,0)
    +CWLAP:(3,”Telenor355DEB_EXT”,-78,”c4:04:15:06:58:e0″,6,25)
    +CWLAP:(3,”Penthouse”,-83,”d8:30:62:2e:96:8f”,6,-9)
    +CWLAP:(4,”TDC-BCED”,-93,”00:19:70:9e:7f:94″,9,-9)
    +CWLAP:(4,”TDC-7540″,-46,”00:19:70:9a:bf:2c”,11,-34)
    +CWLAP:(4,”HxhKAnjt”,-92,”00:1e:2a:7d:19:e4″,11,8)
    +CWLAP:(3,”ZyXEL2D1438″,-81,”90:ef:68:2d:14:38″,13,8)

    OK
    AT+CWJAP=”TDC-7XXX”,”7XXXXXXXX”

    WIFI DISCONNECT
    WIFI CONNECTED
    WIFI GOT IP

    OK

     

    #204

    ozgurtzc
    Participant

    OK congratulations 🙂

    You operated this module. You can tweet in Twitter so glance this link.

    #226

    gtinylab
    Participant

    There are several typos in the topic post.

    1. The line Serial1.begin(9600) should be changed to Serial1.begin(115200) (not 112500).
    2. The module version report is AT+GMR (not AT+GWR).
    3. The command to list access points is AT+CWLAP (not AT+CWLAB).
    4. The command to connect to an access point is AT+CWJAP=”SSID”,”Password” (not listed in the original)

    Also note that all AT commands must be given in upper case.

    #227

    gojimmypi
    Member

    sparkfun has a good datasheet on AT commands ESP8266__AT_Instruction_Set__EN_v0.30.pdf, too

    #228

    ozgurtzc
    Participant

    Thanks @gtinylab for corregenda. Presumably, error occurred while loading the form. Sorry

    #230

    adicretu123
    Member

    Hi,

    Should I use ESP8266WiFi.h library?

     

    #233

    ozgurtzc
    Participant

    Not necessary for this application. Just the above simply follow.

    #234

    ozgurtzc
    Participant

    You should write AT+CIFSR for the learn to module’s IP and MAC address

    #236

    gtinylab
    Participant

    Although you don’t need any library for @ozgurtzc‘s example, I have been looking for a library to use for my own apps.

    I found the list of resources at https://yaab-arduino.blogspot.co.uk/2015/03/esp8266-resources.html useful and I have used that person’s WiFiEsp library for my development. It has the advantage of being largely compatible with the standard WiFi library so I could easily adapt other code.

     

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.