|
Post by greginkansas on Mar 2, 2019 20:39:00 GMT
Check out this new board from www.anarduino.com/ looks like its not out yet but could be a great gateway replacement. I will get some when they are out.
|
|
|
Post by papa on Mar 2, 2019 21:51:38 GMT
Interesting, greg, since the one board is supposed to have both WiFi & RFM69.
Keep us posted.
Brump is also looking at an Arduino compatible plus WiFi shield for a gateway.
|
|
brump
Junior Member
Posts: 81
|
Post by brump on May 3, 2019 0:43:26 GMT
The ATWINC1500 wifi shield arrived in Brazil this week, soon I will start the tests.
papa: brump, we look forward to hearing your results.
|
|
brump
Junior Member
Posts: 81
|
Post by brump on May 15, 2019 2:36:33 GMT
I started the tests to implement the wifi shield: Shield: Adafruit ATWINC1500. Apparently, the wifi client code works in the same way as the ethernet client. I made the modifications to the RFM Gateway 2.5.4 code to use the shield. The problem is that the wifi code is too big, and here on the ship, I just brought ATMega328P. The code occupies 116% of this memory and 106% of the dynamic memory. I would have to use another processor, like the MEGA2560 which has more storage space. Next week, I'll be home and take the tests.
|
|
|
Post by papa on May 15, 2019 21:36:06 GMT
brump: "The problem is that the wifi code is too big" papa: Disappointing
brump: "I would have to use another processor, like the MEGA2560 which has more storage space. Next week, I'll be home and take the tests."
papa: Keep us posted
|
|
|
Post by jimkernsjr on May 18, 2019 5:33:45 GMT
|
|
brump
Junior Member
Posts: 81
|
Post by brump on Jun 25, 2019 13:48:48 GMT
The version of RFM69HCW is newer. It caters me perfectly and is easy to implement.
I'm researching implementations of RFM95 version LoRa, I've acquired 3 modules recently and I'm working on them.
|
|
brump
Junior Member
Posts: 81
|
Post by brump on Jun 25, 2019 14:18:08 GMT
I was able to finish the version of the Wifi gateway. I used arduino mega 2560, an Adafruit ATWINC1500 WiFi Breakout module and an RFM69HW 915Mhz. Steps:1 - Connection of modules:The links are basically the same: ATWINC1500 x Arduino MEGA 2560 SCK - Pin 52 MISO - Pin 50 MOSI - Pin 51 CS - Pin 6 EN - Connect this to 3.3V IRQ - Pin 5 RST - Pin 4 RFM69HW x Arduino MEGA 2560 SCK - Pin 52 MISO - Pin 50 MOSI - Pin 51 NSS - Pin 8 DIO0 - Pin 2 LED RADIO - PIN 7 LED MQTT - PIN 9 For consult: learn.adafruit.com/adafruit-atwinc1500-wifi-module-breakout/wiring-and-test
2 - Download and install the libraries:
#include <RFM69.h> #include <SPI.h> #include <WiFi101.h> #include <PubSubClient.h>
3 - Set up your wifi network within the sketch downloaded from the end of this sketch.
#ifdef NetworkOne // settings for Gateway 1 char ssid[] = "YourNetworkSSID"; // SECRET_SSID; // your network SSID (name) char pass[] = "XXXXXXXXXXXXXXX"; //SECRET_PASS; // your network password (use for WPA, or use as key for WEP) int keyIndex = 0; // your network key Index number (needed only for WEP) int status = WL_IDLE_STATUS;
3 - Configure the pins of the ATWINC1500
Setup ();
WiFi.setPins (6,5,4); // Setting pins to wifi shield. > setPins (int8_t cs, int8_t irq, int8_t rst, int8_t en = -1);
Note: RFM69HW pins have not been modified.
The test prototype:
Sorry for the appearance, but I'm on a ship and I do not have many features.
My server portable:
Attached code:
|
|
brump
Junior Member
Posts: 81
|
Post by brump on Jun 25, 2019 14:39:41 GMT
Papa: Nice job on the WiFi-RFM69 Gateway, brump.
I purchased an ESP8266 module and an ESP32 module. I will proceed with my tests, to try to create an RFM69HW_RFM69HCW gateway. The ATWINC1500 worked perfectly, but it's an expensive module compared to the ESP8266.
Papa: We look forward to hearing your progress using an ESPxx module for a gateway. From what I remember, one of the concerns is to have enough power for the power-hungry radios.
|
|
brump
Junior Member
Posts: 81
|
Post by brump on Jun 25, 2019 16:53:40 GMT
Another important point that I came across these days was the need to have to point out exactly the IP of the MQTT server. This requires IP reservation on the router's DHCP and this is not always fast. My idea is to try somehow to scan a certain IP range. Example: 192.168.10.xxx If my network is by default this range, I know that my server will be between 1 and 255, it would just try to connect me on each IP with MQTT.
If we delve deeper, with each successful connection, it would be enough to store in the eeprom and to restart for some reason the first IP to try would be stored in the eeprom, in case of X attempts, would initiate scanning routine again.
Has anyone tried something like this?
|
|
|
Post by greginkansas on Jun 30, 2019 17:46:30 GMT
I use fixed IP's for RFM gateway and both Openhab and MQTT boxes.
Papa: greg & brump, fixed IPs also work for me.
|
|