Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Is it possible to access data from nRF24L01 / ESP8266 through WiFi router

Status
Not open for further replies.

jpsganesh

Full Member level 3
Joined
Aug 17, 2009
Messages
175
Helped
22
Reputation
44
Reaction score
21
Trophy points
1,298
Location
India
Activity points
2,286
Please find the attached block diagram, I wanted to do data logging and control from my Laptop/PC through wifi router or direct wifi from laptop. So only one nRF24L01 or ESP8266 module will be used. Is it possible to do this with nRF24L01 or ESP8266 module? Which protocol I need to use at wireless side to send and receive data from/to PC/Laptop?
I'm plannign to use PIC16F887 microcontroller with few sensors, LEDs and relays.

WiFi data logger.JPG
 

Only one common thing between nrf2401 and wifi is a frequency. Be sure - it is not possible.
 
I'm not familiar with nRF24L01 but with ESP it is most defenietly possible to control things behind it using simple NetCat such as echo "0xEA" | nc 192.168.1.55 333 -w 3

The ESP can act as a simple Ethernet to serial bridge so all your MCU needs to do is listen for strings and take action; in the example above 0xEA would do something which the MCU can recognize coming from the ESP

To setup the ESP as server I use the following sequence:

Code:
AT+CIFSR 
AT+CIPMODE=1
AT+CIPMUX=1
AT+CIPSERVER=1,333
AT+CIPSTO=120
AT+CIPMUX=0

Now the ESP will accept TCP connections on port 333 and will pass all traffic to its serial interface. From there it is up to your MCU to take action.
 
Thank you all for your replies.
Anybody have all list of commands with its definition? If so please share.
 

The AT commands depend on the firmware; they seem to change almost daily as new commands are added; I found the following BEGINNER’S GUIDE helpful when I first started playing with the module
 

Attachments

  • ESP8266_Beginners_Guide_V0.4.1.pdf
    2.5 MB · Views: 120
When I was searching internet to buy ESP8266 module I found some different configuration like below mentioned.
ESP-01 ESP8266 / ESP-09 ESP8266 / ESP-12 ESP8266
What it is stands for ESP-01 or 09 or 12
 

those are the various hardware versions of ESP8266; there are about 10 now and more are being released quickly so that number is probably larger than 10 already by the time you read this:

esp8266.png
 

You probably will be able to use WiFi over nRF24L01 if you're willing to write the 802.11 protocol stack on your PIC. Not worth it though - better use the ESP8266 or a dedicated WiFi module.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top