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