Arduino - WiFi connection through serial

It should do.

...R

The problem is that I cannot figure out how to interface it with Arduino...

The problem is that I cannot find out, how to interface it with Arduino.../

That is why people buy Moteinos. A Moteino board has a 328p with a RFM69/RFM95/RFM96 RF module of your choice soldered on the back.

https://lowpowerlab.com/shop/product/99

The boards you link to are probably not going work together. The Nano uses 5V logic levels and the RFM69 board probably uses 3.3V logic levels. I say probably because it looks to be a clone of a HopeRF board but one can never be really sure with clone boards.

Almost certainly 3.3V (and 8 MHz clock speed), as all those RF modules can't handle 5V.

Using a 3.3v devices with a 5v Arduino is quite common. You just need suitable components to drop the 5v output signals to 3.3v (such as a voltage divider). The 5v Arduino should have no trouble detecting 3.3v signals from the device.

...R

Ok, thank you I will use level shifter... In case I want to use encryption and the wireless module does not support it, how feasible it is to make the encryption on the Arduino before sending the data? Do Arduino nano support encryption/decryption, does anyone have experience with this?

Thank you.

Not very feasible on a Nano - not so long ago I looked into this, and it was mentioned that the encryption code takes almost 30 kB of Flash, leaving almost nothing left for your sketch.

wvmarle: Not very feasible on a Nano - not so long ago I looked into this, and it was mentioned that the encryption code takes almost 30 kB of Flash, leaving almost nothing left for your sketch.

If I use the flash for encryption and the eeprom for my code? The code is just a reading from Analog and sends the data on serial, nothing too complicated.Which library do you suggest for encryption/decryption?

No suggestions; I was just reading a bit about it while researching LoRa. I didn't pursue it as for my project encryption is not a requirement (it'd have been nice of course - encrypt everything!).

Haven’t had time to play with them yet but I have a pair of DT-06 modules. These are based on the ESP-8285 and look to offer transparent wifi communication over regular UART

360modena_cs: Do Arduino nano support encryption/decryption, does anyone have experience with this?

That depends on what sort of encryption you want. Do you want to confuse me, or the CIA?

...R

Robin2:
That depends on what sort of encryption you want. Do you want to confuse me, or the CIA?

…R

Surely not CIA :P, but either someone with bruteforce attack to invade my sensors network.

360modena_cs: but either someone with bruteforce attack to invade my sensors network.

What sort of people would be interested in doing that?

In what way is your sensor data valuable?

Only a certain amount of paranoia is sensible. :)

...R

Haha, surely not :)

The only thing I can say, is that in the future the major problem in IoT will be such kind of attacks. That's why serious companies provide encryption configuration for their wireless modules... (ex. Xbee)

Just google it...

What CAN you do, really?

You could start listening in to the sensor values, recording them, not sure if there’s any value to that.

You could start to inject fake sensor values by creating transmissions to the receiving node. But as long as your receiver is doing basic sanity checking on the values received that should never cause problems such as buffer overflows. At worst it would poison the logged data.

The ESP8266 has an OTA firmware update method, that should come with a good password. Another way to prevent attacks here is to only make OTA available for a short period of time, say 1 minute upon starting up of the device, after which it just doesn’t listen. This way you can only update the device if you also have physical access to it.

360modena_cs: The only thing I can say, is that in the future the major problem in IoT will be such kind of attacks.

So don't use IoT for anything that matters.

Surprisingly human civilisation has managed for a few thousand years without it.

...R

MartynC: Haven't had time to play with them yet but I have a pair of DT-06 modules. These are based on the ESP-8285 and look to offer transparent wifi communication over regular UART

Do you know what is the maximum distance they can transmit? because I am googling it but I cannot find something..

It's WiFi, so expect to get as far. So typically 0-50 meters, depending on the environment. Maybe a little more if you have a very clean line of sight and no other networks around that cause interference. Just try it with your phone - about as poor an antenna as those modules have. An external antenna will normally give you a better range.

If I use this component:

https://www.ebay.com/itm/331976853568?ViewItem=&item=331976853568

with level shifters (5V to 3.3V and vice-versa)

instead of this component:

https://learn.sparkfun.com/tutorials/rfm69hcw-hookup-guide

with Arduinos of course, will it work?? Has anyone experience?

Thank you...

The Sparkfun one has the same module, but on a breakout board for easy connection and the two required capacitors installed already. Otherwise, they're the same.

The e-bay module you link to fits perfectly on a standard ESP-12 breakout board, by the way. Same footprint.