That’s impressive @NielBierman, great work! Would you mind sharing what nodes you have, as inspiration for us who haven’t leveled up as far yet?
Posts made by mfalkvidd
-
RE: Running out of nodeId's
-
RE: Gateway on my PI when i run HA
@diltech yes it should work. But it depends a bit on which installation method you used for HA.
There are 4:
Home Assistant Operating System
Home Assistant Container
Home Assistant Core
Home Assistant Supervised -
RE: Can not compile MySensors on esp8266
@TheoL there are two pull requests adding support for newer versions.
One is guaranteed to break again.
One should not break in the future, but will instead break all existing sketches.
I’m sure a third option would be welcome if you write the code and submit.
-
RE: Can not compile MySensors on esp8266
@TheoL the latest supported version is
ESP8266 2.6.2
Reference: https://github.com/mysensors/MySensors/releases/tag/2.3.2
-
RE: How to great variables
Nice work so far @wint0178, great that you try expanding on the examples. Sorry for the late reply.
If you look at https://github.com/mysensors/MySensorsArduinoExamples/blob/bba998bce09bc5139eb4ca7a05b0279f4083ff88/examples/PressureSensor/PressureSensor.ino#L90 you see where the existing child ids are defines. You just add another one for the gas sensor, with a unique number (incrementing by 1 is an easy way).
Try that and report back on your result. If something is unclear, just post a followup.
-
RE: openHAB 4 MySensors Binding
@ben999 just remove the stropts include (in hal/architecture/Linux/drivers/core/interrupt.cpp), or use the development branch where the include has already been removed.
-
RE: #define DEFAULT_RFM69_IRQ_PIN
@Tmaster could you share the entire sketch? That usually makes it easier to spot problems.
-
RE: MySensors Gateway on OrangePi 5
Welcome to the forum @mauri
Did you follow the instructions at https://www.mysensors.org/build/orange ?
-
RE: Consistent NACK + RPI Gateway
Sorry, I don't have any insights for the rssi issue.
-
RE: Website forum search feature [is broken]
@dbemowsk yes there is. Sorry for the inconvenience.
I don’t know what is wrong, but search does not work anymore.
-
RE: Consistent NACK + RPI Gateway
@Oumuamua nice work on troubleshooting.
The clear difference I see is that you request echo of the rssi message, but not for temp and hum.
Could you try turning off the echo request and see if the NACK goes away? The behavior might give a clue to what the problem is.
-
RE: Boards esp8266 v3.1.0 or Newer Doesn't Work with MySensors
@monte agreed. That’s why I think there is only one viable solution.
-
RE: Boards esp8266 v3.1.0 or Newer Doesn't Work with MySensors
@monte yes, could be. I prefer control myself, which is why I have never used NodeManager (which was created because MySensors was seen as exposing too much of the underlying stuff).
From what I understood, much of the early success for MySensors came from being easy to use, but that was long before I became aware of MySensors existance.
A big rewrite of MySensors might be a solution. The challenge would be for interested people to gather enough people, and plan and implement that rewrite together. Recent interest levels suggest that such an effort would be unlikely.
-
RE: Boards esp8266 v3.1.0 or Newer Doesn't Work with MySensors
@d-smes yes, almost every upgrade of the esp core breaks compatibility with MySensors. The symptoms are wildly different for different esp versions. Some versions give different compilation errors or warnings, some versions compile fine but fail when the esp boots. This makes it very hard for anyone to realize what problem they are having, and also makes it hard to search the forum for "similar" problems.
There are two pull requests attempting to fix this:
https://github.com/mysensors/MySensors/pull/1513
https://github.com/mysensors/MySensors/pull/1524The one by virtual-maker makes changes that make it possible to use existing sketches, but this fix is likely to break again, just like it has done multiple times before.
The one from d-a-v (who is a big contributor to the esp8266 Arduino core) should be a more permanent solution, but will require changes to all user sketches. (See here for more details by virtual-maker)The contents of the pull requests and the different interactions between MySensors and the esp8266 core are way too complex for me to comprehend so I can't explain why this is such a big problem. But my gut feeling is that none of the solutions are desirable, but the current situation is not desirable either.
The only viable solution so far seems to be to reiterate the recommendation to use ESP8266 core version 2.6.2 which is listed in the release notes [1] [2] but as you've discovered yourself this is not very effective because nobody reads/remembers it.
An alternative could be to remove support for esp in the next MySensors release. Doing so would stop people from spending time scratching their head trying to figure out what is wrong, but I doubt that would make people very happy either.
-
RE: sx1262 and LLCC68 support.
Welcome to the forum @isded
MySensors supports the hoperf rfm9x (95/96/97/98) lora radios.
-
RE: Compilation failure
Welcome to the forum @mtedds
If you haven't already, downgrade the esp8266 board definitions to 2.6.2. See also https://forum.mysensors.org/post/113281
-
RE: Next generation dust sensor for MySensors
https://www.bosch-sensortec.com/products/environmental-sensors/particulate-matter-sensor/bmv080/ could be the next generation. No moving parts. Measures PM2.5. Datasheet: https://www.bosch-sensortec.com/media/boschsensortec/downloads/product_flyer/bst-bmv080-fl000.pdf
-
RE: testing with different controllers (mqtt brokers)
@OldSurferDude use a host name for the broker in the configure command (
--my-controller-url-address=
). Add the host name to/etc/hosts
on the rpi where the gateway is. Start the MySensors gatway.When you want to switch brokers, modify /etc/hosts again and restart the MySensors gateway.
-
Merry Christmas and Happy New 2023
Keeping up with the (slightly broken) tradition from earlier years (2016, 2017 and 2018) :
Metric 2016 2017 2018 2023 supported controllers 18 26 26 26 registered forum users 2200 4700 6800 10800 unique visitors/month on mysensors.org 45000 74000 72000 code commits 1215 1711 1858 2109 forks on github 368 544 675 891 stars on github 726 1246 open source hardware projects added on openhardware.io 129 272 521 And as a bonus, a statistic on the number of spam users: Between 2021-11-12 and 2023-01-03 (so roughly the last year), we added a total of 946 users to the forum. In the same time, I banned 207 users for spam.
-
RE: Can´t more than 11 Sensors send on my Ardoino over tcp
Welcome to the forum @StefanH
I took the liberty to edit your post to mark your sketch as code. This makes the code mich easier to read. You can use the </> button on top of the edit area next time.
Have you looked at https://github.com/mysensors/MySensorsArduinoExamples/blob/master/examples/DallasTemperatureSensor/DallasTemperatureSensor.ino ? It has support for multiple sensors.
In any case, please post the debug output of your sketch. It will make it 10-100x easier to troubleshoot. If you haven't already, see https://forum.mysensors.org/topic/666/read-this-first-it-could-save-you-a-lot-of-time/ for how to enable debug output.
-
RE: GatewayESP32MQTT with local sensor crashes
@Stig I wouldn't bet on anything soon.
-
RE: GatewayESP32MQTT with local sensor crashes
Thanks for explaining @Stig
I guess it would be possible to use https://github.com/mysensors/MySensors/blob/253109d3ff00ec524c5d1e1dfcd8e197c96e54c2/core/MyMessage.cpp#L279 to get a string representation of the message and print it. Or would a hexadecimal representation make more sense? None of them would match the binary message posted to the mqtt topic though, unless your mqtt client does some conversion (to hexadecimal most likely).
Edit: there is a 2 year old pr for adding binary support to mqtt explorer: https://github.com/thomasnordquist/MQTT-Explorer/pull/493
If merged, mqtt explorer would support hex so maybe we should use hex as well? -
RE: GatewayESP32MQTT with local sensor crashes
Nice work @Stig, thanks for reporting back.
Yes, using send is correct. The log looks good to me. Were you expecting something different?
-
RE: GatewayESP32MQTT with local sensor crashes
@Stig isn’t is necessary to call bme.begin() before using the sensor?
Their example does: https://github.com/adafruit/Adafruit_BME280_Library/blob/master/examples/advancedsettings/advancedsettings.ino#L41
-
RE: Detect Interrupt / Timer
Welcome to the forum @Dave2526
Yes. The return value of the sleep call will let you know the reason for waking up. Documentation: https://www.mysensors.org/download/sensor_api_20#sleeping
-
RE: Can't get Serial Output from an RF-Nano
Nice work @Keichi, thanks for reporting back!
-
RE: Can't get Serial Output from an RF-Nano
@Keichi sorry, I thought you were using an esp bpard.
Have you tried different baudrates in the serial monitor? If you are able to find one that works, you might get useful information.
-
RE: Can't get Serial Output from an RF-Nano
Welcome to the forum @Keichi
Maybe https://forum.mysensors.org/post/113281 can be useful?
-
RE: Cannot compile on Lolin S2 Mini with USBCDC
Welcome to the forum @Gibber
Unfortunately, esp32 usage is not that common in MySensors so you might be the first person to try the S2 with this combination of version.
One thing that could be worth trying is to downgrade thr esp32 library to 1.0.4 which was the active version when MySensors 2.3.2 was released. Similar downgrades have been necessary for esp8266 lately.
-
RE: WeMos D1 mini won't start as gateway.
Nice work @Igor-Vinograd, thanks for reporting back.
-
RE: WeMos D1 mini won't start as gateway.
Welcome to the forum @Igor-Vinograd
If you haven’t already, see https://forum.mysensors.org/post/113281
My guess is that you are experiencing the same problem. -
RE: No LAN connection ESP8266 gateway
@electrik version 3 will not work. 2.6.2 is required.
-
RE: No LAN connection ESP8266 gateway
@Bramz see section #1:1 in https://forum.mysensors.org/topic/666/read-this-first-it-could-save-you-a-lot-of-time on how to enable debug logging. After that, please post the serial output here.
-
RE: [Help!] Adafruit Feather M0 with built-in RFM69HCW can't find parent / GW
@DeepCore not wrong frequency no. But it looks like the feather doesn’t come with the antenna pre-soldered. Since the devices should be identical otherwise, the antenna could be what differs. But if it was, the rssi would probably have been different as well.
-
RE: No LAN connection ESP8266 gateway
Hmm, interesting. On my mobile I get redirected to https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers?tab=downloads which works. But on my PC I get an error.
-
RE: No LAN connection ESP8266 gateway
@OldSurferDude that's strange. The driver download link works for me:
But if you can flash the esp, you already have working drivers so there is no need to install more.
We have a lots of users using esp8266 as gateways (I have on such gateway myself) so generally MySensors works well with esp8266. I wonder what the difference could be for your and Bramz's devices.
The esp8266 uses 74880 baud when it boots (before it loads the sketch) so yes, to see the boot output you must use 74880 baud.
-
RE: No LAN connection ESP8266 gateway
@Bramz is anything connected to any of the gpio pins? Some of the pins control boot behavior.
-
RE: New sensor ID-s when changing network
I think that HA would keep the entities and ids if it was aware that the new gateway was a replacement of the old gateway.
-
RE: [Help!] Adafruit Feather M0 with built-in RFM69HCW can't find parent / GW
@DeepCore do you remember if both modules got similar rssi when you tested the Adafruit rx/tx sketch?
-
RE: Please I need some help
@Emmanuel-Abraham https://www.mysensors.org/apidocs/Node2Node_8ino_source.html shows how to send from one node to another node.
https://forum.mysensors.org/topic/8716/direct-pairing-of-two-nodes-implementation/ might be useful as well.
-
RE: New sensor ID-s when changing network
@ejlane I don't think setting node id helps if Home Assistant think there is a new gateway. A new gateway means a new MySensors network (parallel to the earlier network). Since people could have any number of MySensors gateways connected at the same time, a MySensors node is identified not only by its node id, but by its gateway (address/path) and its node id.
In Domoticz, the correct way is to replace the old gateway with the new gateway, instead of adding the new gateway. I don't know if HA has a similar concept but it should.
-
RE: HassOS + Serial Gateway OR Docker + RPI Ethernet Gateway
@OldSurferDude the HA app is local, no cloud involved. (With the exception of app notifications which go through firebase)
-
RE: Send configuration (numbers) from HA to Arduino
@OldSurferDude great questions. I'm afraid I have no idea. I have never used MySensors with HA.
-
RE: Send configuration (numbers) from HA to Arduino
@OldSurferDude I have not tried it myself, but I think you request it, like https://www.mysensors.org/build/pulse_power does in setup().
You could request it periodically to remove the need for an input button.
-
RE: 💬 Fork of BigClive AA Battery Trickle Charger
@NeverDie I found this at https://batteryuniversity.com/article/bu-902-how-to-measure-internal-resistance
Resistance does not reveal the state-of-health of a battery and often stays flat with use and aging.
Li-ion in an 18650 cell produces about 36mOhm with a 1,000Hz AC signal and roughly 110mOhm with a DC load. Since both readings are valid, yet far apart, the user must consider the application. The pulse DC load method provides valuable readings for a DC application such as a heating element or an incandescent light, while the 1,000Hz method better reflects the performance requirements of a digital load, such as portable computing and mobile phones that rely to a large extent on the capacitive characteristics of a battery.
If the values in the article are representative, it seems like your charger uses the 1,000Hz method. But I am not sure if the value is useful to esitmate ageing.
-
RE: 💬 Fork of BigClive AA Battery Trickle Charger
@NeverDie what do you do when measuring the internal resistance?
(What load, how long do you wait before measuring, etc) ?
-
RE: Sensor to measure amount of dripping water?
Maybe a tipping bucket would work?
-
RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?
@NeverDie yes google maps can be cached offline. I do that. Saves data traffic when I am online as well.
Not sure if the youtuber already mentioned it (I did not watch the videos) but the app called maps.me is great. I use it for offline maps on my phone and tablet. The maps are very detailed and it supports offline routing.
-
RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?
@NeverDie for lorawan, Helium's 400k gateways (they call them hotspots though) might give better coverage, depending on where in the world you want the coverage. https://explorer.helium.com/iot
-
RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?
@NeverDie they already attacked Viasat https://techcrunch.com/2022/05/10/russia-viasat-cyberattack/
But that was not a physical attack.
I wonder how many of the 2,500 satellites need to be affected before the network would be degraded. Physical attacks on a single geostationary satellite is definitely within the capabilities of nation states. But bringing down a constellation is a different game. -
RE: NACK after Core initialized, transport status 1
Nice work.
I think the cleareeprom sketch works for esp8266 as well. But I don't think old eeprom is the problem.
I don't have much experience with rfm radios so I don't know what could be wrong. Normal things to check is power supply to the radios and antennas for the radios. I think all the rssi lines in the log indicate that there is a lot of radio noise.
-
RE: Anyone using/tried the E28-2G4M27S 2.4Ghz LoRa SX1280 27dB module?
@NeverDie today I re-read the fcc rules and I may have mislead you back in https://forum.mysensors.org/post/111853
It seems like the fcc rules say that if you use more than 500kHz bandwidth, you don't need to use frequency hopping, and there is no dwell time requirement.
(2) Systems using digital modulation techniques may operate in the 902-928 MHz, 2400-2483.5 MHz, and 5725-5850 MHz bands. The minimum 6 dB bandwidth shall be at least 500 kHz.
I don't understand why fcc encourages applications to hog a big portion of the spectrum but it looks like you can go willy-nilly if you just use enough bandwidth.
-
RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?
@NeverDie yes, starlink is the obvious, reliable, high capacity (and due to it bein available off the shelf, slightly boring) solution. Their RV plan can be paused and you don't pay any fees when it is paused.
-
RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?
Yet another strategy is to provide offline resources (though a local wifi hotspot). Example: https://www.kiwix.org/en/
I have offline copies of wikipedia, wikivoyage and some TED talks -
RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?
And is a mesh network isn't exciting enough, there's always the satellite route
https://amsat-dl.org/en/qo-100-high-speed-multi-media-beacon/ (2-way comms if you have a ham license)
https://othernet.is/products/dreamcatcher-circuit-board / https://www.engineeringforchange.org/solutions/product/outernet-lantern/ (note the name change from outernet to othernet ) -
RE: Anyone here tried either LoRa Meshtastic or LoRaWan for grid-down emergency communications?
I find emergency networks interesting, but have not tried any of them. Some other similar projects:
https://github.com/Call-for-Code/ClusterDuck-Protocol
https://github.com/markqvist/reticulum
https://disaster.radio/ / https://github.com/sudomesh/disaster-radio -
RE: NACK after Core initialized, transport status 1
@Tico what does the gateway log say?
The gteway log will show if the message did not reach the gateway, or the acknowledgement did not reach the node.
-
RE: 💬 Building a MQTT Gateway
@OldSurferDude yes I have read it already. But unfortunately my impression is that my knowledge of how the code works is woefully insufficient.
-
RE: Find Parent (yeah, I know)
@qqlapraline I’m far from an expert, but it looks good to me. Clean and simple, not much that should be able to go wrong
Maybe the distance between the capacitor and the radio is a bit long (depending on how wide the traces are I guess).
Maybe try to temporarily add another capacitor close to vcc and gnd on the radio, and see if it helps?
-
RE: Find Parent (yeah, I know)
@qqlapraline strange. Seems like you have covered all the usual stuff that might go wrong.
- Would you mind posting photos of the node?
- Have you tried the node at different distances from the gateway?
- How is the node powered?
-
RE: Find Parent (yeah, I know)
@qqlapraline is the gateway able to communicate with other nodes?
-
RE: MySensors GW on rpi3
Nice work on the internet connectivity @Kurtsejr
It is an issue on some (newer?) linux versions. It has been fixed in the development version of MySensors. You can switch to the development version, or add the fix yourself.
See https://github.com/mysensors/MySensors/issues/1431 and https://github.com/mysensors/MySensors/pull/1446/files
Sorry for the inconvenience.
-
RE: MySensors GW on rpi3
@Kurtsejr said in MySensors GW on rpi3:
How do I remove if more that one instance is started? - I will try to google it. Perhaps it's easier to start from beginning again
sudo systemctl stop mysgw.service
will stop the gateway service if it is currently running. It will start automatically again after reboot (unless disabled).sudo systemctl disable mysgw.service
will disable autostart, but will keep the service running if it has already been started.https://www.linuxtrainingacademy.com/systemd-cheat-sheet/ can be a good place to start
-
RE: MySensors GW on rpi3
@Kurtsejr said in MySensors GW on rpi3:
Has something changed? or is it github that does not response?
The Raspberry Pi probably doesn't have the right settings for connecting to Internet. What happens if you run
ping google.com
for example? You should get something like this:ping google.com PING google.com (142.250.179.142) 56(84) bytes of data. 64 bytes from ams17s10-in-f14.1e100.net (142.250.179.142): icmp_seq=1 ttl=58 time=33.3 ms 64 bytes from ams17s10-in-f14.1e100.net (142.250.179.142): icmp_seq=2 ttl=58 time=33.4 ms
If you don't get any replies, the raspberry pi doesn't have a working internet connection.
-
RE: MySensors GW on rpi3
@Kurtsejr I tested the gateway on a spare raspberry pi and it does indeed print lots of
ERROR accept: Bad file descriptor
when more than one instance of the gateway is started. The solution is easy: don't start two instances at the same time.The reason is actually printed in the log:
ERROR bind: Address already in use
but is easy to miss due to the manyERROR accept: Bad file descriptor
INFO Starting gateway... INFO Protocol version - 2.4.0-alpha DEBUG MCO:BGN:INIT GW,CP=R-NGL---,FQ=NA,REL=0,VER=2.4.0-alpha ERROR bind: Address already in use ERROR Failed to bind! DEBUG MCO:BGN:STP DEBUG MCO:REG:NOT NEEDED DEBUG MCO:BGN:INIT OK,TSP=NA ERROR accept: Bad file descriptor ERROR accept: Bad file descriptor ERROR accept: Bad file descriptor ERROR accept: Bad file descriptor
-
RE: MySensors GW on rpi3
To check if the gateway has started automatically, run
sudo systemctl enable mysgw.service
-
RE: MySensors GW on rpi3
@Kurtsejr yes the gateway will start automatically at each boot, unless automatic start is disabled.
-
RE: MySensors GW on rpi3
@Kurtsejr did you reboot befor running
sudo ./bin/mysgw
?
If that’s the case my guess is that the gateway was already started automatically at boot. When you tried to start another instance, the tcp port was already in use. -
RE: MySensors GW on rpi3
@Kurtsejr what configure command did you use?
Were there any warnings or errors during make?
What image are you using? -
RE: Absolute location of system config in EEProm
@mariusl I am not sure I understand the question, but saveState will add EEPROM_LOCAL_CONFIG_ADDRESS to the position you use in the call.
-
RE: Absolute location of system config in EEProm
In addition to saveState, there are also low-level functions to read/write larger blocks: https://github.com/mysensors/MySensors/blob/253109d3ff00ec524c5d1e1dfcd8e197c96e54c2/hal/architecture/MyHwHAL.h#L66
But if you use the low level functions, you'll need to calculate position yourself. You can use EEPROM_LOCAL_CONFIG_ADDRESS as start address.
-
RE: Setting parameters before system load
@mariusl Cool use case, thanks for explaining.
-
RE: Setting parameters before system load
NodeID is set by defining MY_NODE_ID. The assignment can be a variable if you want to set it dynamically yourself.
In the same manner you can probably set MY_WIFI_SSID and MY_WIFI_PASSWORD. I am not aware if anyone has tried setting them dynamically before, so you'll probably have to experiment a bit.
https://www.mysensors.org/download/sensor_api_20#node-boot-sequence describes when things are canned in the boot sequence.
-
RE: Raspberry MQTT GW over TLS with rfm69
@Tico tls support is available in the development version of MySensors thanks to https://github.com/mysensors/MySensors/pull/1387 and @rdrgzlng
-
RE: error compiling
@alexsh1 https://github.com/arduino/ArduinoCore-avr/issues/158 and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60040 suggests it is a bug in gcc. It seems to have been resolved a long time ago though.
-
RE: Error decoding message from gateway, bad data received
@OldSurferDude the examples are not specific to atmega328-based Arduinos.
The comment in the sketch is fairly specific
// Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender) #if F_CPU == 8000000L #define MY_BAUD_RATE 38400 #endif
-
RE: Site down?
I have gotten that message occasionally over the years, and sometimes the result got stuck in my browser cache (I think). Ctrl+F5 has resolved the issue in those cases. But since garubi already tried multiple browsers, it shouldn't be a caching problem.
@hek could you put the server time (no client-side javascript) on that page, to make it possible to see when the web server delivered the page? Maybe also double-check what cache headers are set, to make sure it isn't cached? I don't have access to a computer at the moment so I can't check myself.
-
RE: Error decoding message from gateway, bad data received
@OldSurferDude this is the resson MySensors uses 38400 by default https://aws1.discourse-cdn.com/arduino/original/4X/f/9/a/f9a09e54b3acf40ad82791fcf46b101cb04f7cf2.png
-
RE: How to drill 1mm diameter holes? My drills won't even hold the bit!
A few turns of (Scotch) tape to make the drill bit fit might be good enough to beat the PCB rotation method.
-
RE: MySensors gateway running as a service
@OldSurferDude everyone who has run make install has it running as a service. See the Install section at https://web.archive.org/web/20220306231732/https://www.mysensors.org/build/raspberry
https://github.com/mysensors/MySensors/pull/1421 adds support for more than one gateway on the same machine. You’ll need to configure them to use different eeprom files though, see my note in the PR.
-
RE: Site down?
Thanks for reporting @garubi
What error message does your web browser show? Can you try with a different browser or device?
The site works for me.
-
RE: Raspberry Pi 3 (RPI 3) + MQTT gateway NACK and triple messages
Nice work on the troubleshooting @Oumuamua
The reason the node sends multiple times (which causes the gateway to publish multiple times to mqtt) is that the node does not receive ack from the gateway, and therefore assumes that the message got lost and retransmits.
So the question is why the node has trouble hearing the ack. Maybe the power supply to the gateway's radio isn't sufficiently stable. Imagine trying to hear a podcast while twiddling the volume knob up and down all the time. Are you using a capacitor near the radio? The rfm radios usually don't need one though.
Maybe the signal is too strong. The rssi values are pretty high. Imagine standing next to a megaphone blasting in your ear. See if omitting
--my-is-rfm69hw
and re-running make and make install helps (iirc, this will result in lower output power). You could also try moving the node further away from the gateway.Maybe the antennas are bad. Could you post photos of the antennas? Maybe there is a solder bridge somewhere?
-
RE: Gateway doesn't receive any message from node
@ctodor nice work!
When you checked the voltage, did you use a multimeter or an oscilloscope? If you used a multimeter, maybe there was a ripple or something that wasn’t visible.
-
RE: Raspberry Pi 3 (RPI 3) gateway initialization loop
Add
--extra-cxxflags="-DMY_DEBUG_VERBOSE_GATEWAY
to the configure command and run make again. This will give more details in the debug log.Edit: the log file of your mqtt broker might give some iseful info as well.
-
RE: ESP8266Wifi Gateway won't connect
delay(30000);
A delay in the gateway will make the gateway freeze. It will not handle incoming messages (not from the mqtt broker, not for any nodes). Use wait() instead.
Previously, I had my gateway running on an RPi. My question is, can I put a presentation() routine and data acquisition of the gateway running on my RPi?
Yes, it should work. The file to edit is https://github.com/mysensors/MySensors/blob/development/examples_linux/mysgw.cpp
Have you forgotten about https://forum.mysensors.org/post/111806 ?
-
RE: ESP8266Wifi Gateway won't connect
@OldSurferDude you are (at least) missing
#define MY_GATEWAY_MQTT_CLIENT
.The sketch you are using is instructing MySensors to create an ethernet gateway.
Example sketch for esp8266 mqtt: https://github.com/mysensors/MySensors/blob/master/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino
-
RE: Wait() in setup question.
@skywatch
loop()
will not be run until aftersetup()
is finished (unless maybe if you have setMY_TRANSPORT_WAIT_READY_MS
but perhaps even not then), but I thinkreceive()
will work because the transport has been initialized.https://www.mysensors.org/download/sensor_api_20#node-boot-sequence might be useful to better understand the flow.
-
RE: ESP8266Wifi Gateway won't connect
@dpcons could you post photos of your setup? Having some more eyes on the wiring can help sometimes.
When you test the webserver, do you use the exact same wiring?