[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
Visit site
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.

 

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: 174
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:

 

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…