Go Down

Topic: Arduino - WiFi connection through serial (Read 1 time) previous topic - next topic

gdsports

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

wvmarle

Almost certainly 3.3V (and 8 MHz clock speed), as all those RF modules can't handle 5V.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Robin2

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
Two or three hours spent thinking and reading documentation solves most programming problems.

360modena_cs

#18
Jul 12, 2018, 11:51 am Last Edit: Jul 12, 2018, 11:57 am by 360modena_cs
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.

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.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

360modena_cs

#20
Jul 12, 2018, 12:33 pm Last Edit: Jul 12, 2018, 01:34 pm by 360modena_cs
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?

wvmarle

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!).
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

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

Robin2

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
Two or three hours spent thinking and reading documentation solves most programming problems.

360modena_cs

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.

Robin2

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
Two or three hours spent thinking and reading documentation solves most programming problems.

360modena_cs

#26
Jul 12, 2018, 11:34 pm Last Edit: Jul 12, 2018, 11:56 pm by 360modena_cs
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...

wvmarle

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.
Quality of answers is related to the quality of questions. Good questions will get good answers. Useless answers are a sign of a poor question.

Robin2

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
Two or three hours spent thinking and reading documentation solves most programming problems.

360modena_cs

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

Go Up