ragoth
Junior Member
Posts: 64
|
Post by ragoth on Nov 5, 2021 15:41:54 GMT
Dear Papa, I have one more requirement i.e., can I have one to one communication between Node to Node without any gateway.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Nov 4, 2021 8:07:31 GMT
Dear Papa, the new sketch also works fine with MQTT Username and MQTT Password credentials. Thank you.
Thanks, ragoth, for reporting back. I'm glad it worked.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Nov 2, 2021 23:44:22 GMT
Papa, you are great to give a helping hand spontaneously. Thanks with best regards.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Nov 1, 2021 21:10:18 GMT
Dear Papa, I want to use this Gateway with Reyax.com server, to use that we have to enter not only server IP address, but MQtt_username and MQTT_password in the ESP32 Gateway code. Please advice how can I add MQTT username and password in the Gateway sketch.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Nov 1, 2021 16:24:01 GMT
13:10:47.106 -> 13:10:47.106 -> GW RF69 25.6.3 esp Nw2 13:10:47.106 -> 13:10:47.106 -> 433 Mhz... 13:10:47.106 -> 13:10:47.106 -> Connecting to Access 13:10:48.222 -> ... 13:10:52.223 -> WiFi connected 13:10:52.223 -> IP address: 192.168.86.250 13:10:52.223 -> connecting 13:10:53.212 -> no link 13:10:55.279 -> MQTT OK 13:12:49.724 -> MQTT msg: hom2/rfm_gw/nb/node06/dev99: NODE 6 WAKEUP 13:12:49.724 -> MQTT msg: hom2/rfm_gw/nb/node06/dev16: OFF 13:12:50.700 -> MQTT msg: hom2/rfm_gw/nb/node06/dev16: ON 13:12:52.697 -> MQTT msg: hom2/rfm_gw/nb/node06/dev16: OFF 13:12:54.683 -> MQTT msg: hom2/rfm_gw/nb/node06/dev16: ON
Dear Papa, It works fine now. Thank you soo much, with best regards.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Oct 14, 2021 12:02:05 GMT
Ragoth,
Keep us posted on how your project is going & any improvements that you add.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Oct 12, 2021 12:31:59 GMT
Using the ESP32-RFM69 GatewayThis ESP32 Gateway (assigned to a different ID & network number) can work alongside another (Ethernet) RFM69 Gateway or as your sole RFM69 Gateway. This ESP32 Gateway communicates just the same with RFM69 nodes as does the Ethernet RFM69 Gateway. Also like the Ethernet Gateway, the ESP32 Gateway will communicate with openHAB via MQTT messaging. Using openHAB, one can gather data (including sensors) from nodes & take action based on that data. This thread can help you build & program an RFM69 network linked to openHAB. That thread assumes an Ethernet Gateway, but you can substitute this ESP32 Gateway. This forum documents using a number of sensors on the RFM69 nodes. Those threads may still assume openHAB 2, but are adaptable to openHAB 3. (I am gradually updating). What are your questions & comments on this project?How do you think you might use the ESP32-RFM69 Gateway?
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Oct 11, 2021 11:42:49 GMT
LEDs & Node Data Results on the Arduino IDE Serial Monitor
If you added the two LEDs to the ESP32 Gateway, they give some feedback (especially useful when not connected to Serial Monitor output on a computer). When WiFi & MQTT connect, one LED will light & stay steady. When RFM69 radio communication is happening, the other LED will flash.
My ESP32 is programmed to be Node 2 on Network 200. On the ESP32 Gateway, the Serial Monitor shows I'm receiving data like the following from existing Arduino RFM69 nodes on NetworkTwo. (I powered down my existing Node 2 Ethernet Gateway.) I added some explanatory notes after the data
MQTT msg: hom2/rfm_gw/nb/node99/dev02: -63 // RSSI, radio signal strength MQTT msg: hom2/rfm_gw/nb/node99/dev04: 3.34 // node voltage MQTT msg: hom2/rfm_gw/nb/node99/dev09: 1 // # of transmit tries to accomplish send MQTT msg: hom2/rfm_gw/nb/node99/dev43: ON // door locked MQTT msg: hom2/rfm_gw/nb/node99/dev44: OFF // door unlocked MQTT msg: hom2/rfm_gw/nb/node99/dev48: nan // temp not available, sensor disconnected MQTT msg: hom2/rfm_gw/nb/node99/dev49: nan // humidity " " MQTT msg: hom2/rfm_gw/nb/node21/dev02: -47 MQTT msg: hom2/rfm_gw/nb/node21/dev04: 3.22 MQTT msg: hom2/rfm_gw/nb/node21/dev09: 1 MQTT msg: hom2/rfm_gw/nb/node21/dev66: 11 // code for sump cistern level MQTT msg: hom2/rfm_gw/nb/node21/dev71: -6 // sump pump on for 6 seconds
^^ Expect similar results when RFM69 communication is working.
Next, Using the ESP32 Gateway
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Sept 21, 2021 19:43:55 GMT
Hi, this is Ragoth after few years. You may try the same pin config that works with ESP32 and LoRa module. RFM module to ESP32 PINS: SCK --5 MISO --19 MOSI --27 SS/CS --18 RST --14 DI0/IRQ --26 I think it should work, give it a try and good luck:-)
papa: thanks, ragoth, for offering suggestions to solve this.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Oct 16, 2017 1:28:26 GMT
Dear Mr. Brump, there is a small correction in your circuit, that is the T2 (BC817)transistor emitter should be grounded along with R8 (4K7) resistor.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on May 16, 2017 2:26:31 GMT
Thank you so much for keeping my problem in your mind all these days and thinking for a solution. I will try your suggestion and get back to you with my results. Thanks with great regards, Ragoth.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on May 7, 2017 2:10:43 GMT
Dear Papa, I am having a peculiar problem with my battery operated "Door Sensor Node" that is, Sometimes it misses to send or may be the receiver fails to receive the status Open or Closed, and it stays in that condition and goes to sleep mode. Unless the door is activated again from open to close or close to open to make it awake it keeps on sleeping with that false status of the Door. About the Node: That node has nothing but only one reed switch connected to D3 to make it awake and send the status. The interrupt option is set to respond to Change i.e., triggered by Low to High or High to Low of D3 so that it wakesup for open or closing of the door to send the status and then sleep. Suppose if it misses to trigger it shows the false status untill it is wakesup again by the door. Please advise, how can I include a periodic transmission so that even while it sleeps it should wake up once in a Minute, send the status then goto sleep.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Mar 29, 2017 6:06:51 GMT
Dear Papa, as regards to RFM69-W and RFM69-HW, the difference is in their RF out put power only and not in the control input provided by GPIOs I believe. Pls clarify.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Mar 25, 2017 1:01:55 GMT
You are really great to write so many articles on this subject and compiled an index too, to access them straight away. Many many thanks for your dedication and contribution.
Papa: You're welcome, ragoth. I have more to come of indexing our treasure trove within this forum. I hope it benefits a lot of people.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Mar 5, 2017 16:36:09 GMT
Dear Mr.Papa, I have a basic doubt, ie., the above items and sitemap file etc., are the complete file contents or it is to be added with your existing Configuration files like My.items, My.sitemap and My.rules files. It may be a silly question, but please reply.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Feb 28, 2017 0:09:33 GMT
Dear Papa, thank you so much for your helpful immediate reply. Please keep sharing with us the kind of problems you came across and the solution you find, as and when you recollect from the past because you involved and spent so much in this technology.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Feb 27, 2017 1:40:17 GMT
Dear Papa and Computourist, Please provide general guidance and also Tips and Tricks to cross check, whether the Items follow the Rules file contents or the Rules tallies with Items file contents.
This mismatch makes the OpenHab to give Warnings, sometimes it hangs or delayed while loading the Startup files. Especially when loading the Rules file at Startup.
Please also clarify whether the Rules should be in the order of Items file contents or it can be any where within the Rules file.
I am correcting it by trial and error method, which consumes lot of time and frustrating, because I don't know how to pin point my mistakes.
Since you have vast expertise and "hands on experience" in OpenHab, your guidance will be a boon to beginners like me to trouble shoot this Startup problem.
Thanks in davance
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Feb 12, 2017 12:07:23 GMT
Dear bone450, I tried your ESP Node Connection Status setup and it works fine. Thanks
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Oct 7, 2016 2:33:32 GMT
Jul 30, 2016 13:02:15 GMT 5.5 computourist said:
Hi, thanks for the kudos ;-)
At the moment I do not have fixed plans for updates or new features.
I am playing with the idea to use LORA (RFM95) for extended range (km range) sensor nodes. Up to now no practical steps taken yet...
Are there any ideas or requests for new features ?
Dear Computourist,
Please share your progress on using LoRa (RFM95) module for OpenHAB.
I request you to give us a start with your experience and expertise.
It will be very helpful to take our openHAB projects to the next level.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Jul 8, 2016 1:55:18 GMT
Congrats and Best Wishes for an early success!!!
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Jun 21, 2016 2:29:47 GMT
Hi Papa you got it right. You may see switch's connecting terminals just behind the switch. Connect at it as close as possible.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Jun 20, 2016 15:30:24 GMT
Hi Papa, I suggest you to connect snubber circuit across the Fan switch. Ie.,a 39 Ohms 0.5 watt resistor in series with a 10nf 400 volts capacitor and the other ends connected across the Fan switch. This will suppress the spark produced by the fan switch when it is open/ Off and in turn suppress RFI produced by arcing. This RF interference can disturb the circuits in close vicinity. Always keep all wires, especially the Analog and Digital input wires as short as possible to avoid stray pick up of this RFI.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Jun 3, 2016 23:44:47 GMT
Dear Lewishollow, I tried your above code and it is not giving and reading. Please suggest the recommended changes in your ino code to achieve this. Thanks and regards.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Jun 2, 2016 1:47:29 GMT
Dear lewishollow, Some sensors like Gas, Fire etc., gives high analog output (1023) when there is no gas or fire exists and gives low analog output when it senses harmful gas or fire etc.,. Please advice how to reverse the displayed reading, like 1023 from sensor to show zero (or 0%)on and zero from sensor to show high 1023 (or 100%)on the openHab display. This will make the displayed reading proportionate to sensed element. All my nodes are using your Object oriented designs and where do I make this change in the analog sensor portion of ino file. Thanks and Regards.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on Jun 1, 2016 1:41:49 GMT
Sorry I missed to mention that I want to do it using item / rules code. In the Arduino node I am already using the map option to do similar role for dimmer function.
Please suggest me the rules / item code to achieve this.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on May 31, 2016 14:39:08 GMT
Hi, Some sensors like Gas, Fire etc., gives high analog output (1023) when there is no gas or fire exists and gives low analog output when it senses harmful gas or fire etc.,. Please advice how to reverse the reading displayed, like 1023 from sensor to show zero (or 0%)on and zero from sensor to show high 1023 (or 100%)on the openHab display. This will make the displayed reading proportionate to sensing element.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on May 24, 2016 1:09:25 GMT
Dear lewisollow, sorry I made a blunder while defining. I noted down your advice and try to complete the rest of the code and test. Thanks a lot and best regards.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on May 21, 2016 3:30:03 GMT
Hi Computourist, I tested the complete setup and it works fine with both the GPIO functions. Thanks and regards, Ragoth
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on May 20, 2016 16:00:44 GMT
Thank you computourist, I have upgraded the IDE and now it works. I am getting the following in the Serial Output: ...... WiFi connected IP address: 192.168.1.11 Connect to MQTT broker...connected topic home/esp_gw/nb/node80/dev99 value:NODE 80 WAKEUP topic home/esp_gw/nb/node80/dev03 value:WDIG V1.0 topic home/esp_gw/nb/node80/dev16 value:OFF topic home/esp_gw/nb/node80/dev03 value:WDIG V1.0 topic home/esp_gw/nb/node80/dev16 value:OFF topic home/esp_gw/nb/node80/dev03 value:WDIG V1.0 topic home/esp_gw/nb/node80/dev16 value:OFF
Now I will test complete functions and get back to you. Thanks again - ragoth.
|
|
ragoth
Junior Member
Posts: 64
|
Post by ragoth on May 19, 2016 15:09:52 GMT
Dear Computourist, I am really curious to try your compact wifi node. But I am getting compiling error. Please share the correct ESP8266.h library file as there are different versions in the net. Please share the Library file or its link. Thanks and best regards. Error Message: C:\Users\j\Documents\Arduino\libraries\ESP8266WiFi/ESP8266WiFi.h:23:26: fatal error: avr/pgmspace.h: No such file or directory
#include <avr/pgmspace.h>
^
compilation terminated.
Error compiling.
|
|