https://www.tindie.com/products/lps/lorawan-megabrick/
Has anyone tried this hardware with mysensors?
Cheers
P
https://www.tindie.com/products/lps/lorawan-megabrick/
Has anyone tried this hardware with mysensors?
Cheers
P
@scalz
Hi yes, thanks for your response.
I see the E70-433NW14S is a sub-GHz 15.4 radio with PHY and MAC built in.
Has anyone taken a look at using this?
I looked at other Ebyte modules (Lora) but this seems pretty cool as its UART and so I think we can use our RS485 with it.
Maybe we finally get the previously costly zigbee-style star/mesh radios for cheaper price?
I would be very interested if anyone here has experience with this.
p
@cloolalang
Update:
Other parameters not yet tested;
// Wait configuration reply.
(void)wait(2000, C_INTERNAL, I_CONFIG);
I am trying to see if I can use the KQ-330 Powerline serial modems for Mysensors.
The modems have a 9600 8N1 TTL UART and the Powerline data rate is very much slower at 100 Baud.
I am using mysensors RS485 and Arduino Uno's for both node and serial gateway to Home Assistant.
So far I have managed to get the node and gateway talking however I think that because the powerline data rate is super slow compared with the 112500 Baud Home Assistant-to-Serial Gateway, and the 9600 Baud serial gateway-to-KQ330.
I am seeing issues with collisions and TRX turn around timing during presentation and registration.
As the link is so slow, I may actually just opt to use a master/slave approach with passive nodes in the end, for example a typical node-gateway heartbeat message takes about 4 seconds!
I am looking at the possibility of using Aloha on the bus however as I really don't want to throw out presentation as it really helps with setting up on Home Assistant.
So I am digging around the various transport timers and wondering how I can optimise it better for the super slow 100 baud link speed.
My first question here is regarding the collision control in mytransportrs485.cpp; line 256
while (_serialProcess()) {
unsigned char del;
del = rand() % 20;
for (i = 0; i < del; i++) {
delay(1);
_serialProcess();
}
timeout--;
if (timeout == 0) {
// Failed to transmit!!!
return false;
}
}
Im I correct to say that the 1ms delay is based on 9600 baud and I might increase it to around 100ms for 100 baud?
@cloolalang
So I have two KQ-330 on the lab bench.
So far we find:
I will test with mysensors RS485 gateway and sensor mode, with the transport time-outs increased to maybe 10000ms!
p
Re: Has anyone worked with e32-433t30d or any products related to EByte Company
I am looking into using these, but, wait... 1MHz channels:
ISM band 433MHz
Channels that you can use:
433.000
434,000
Thats it!
On no!... Why Ebyte?
P
I wonder who is interested to upgrade RF95 to support the improved Lora chips
https://forum.mysensors.org/topic/10724/which-are-the-preferred-lora-modules-now
I dont think RadioHead is doing anything on it.
So far the only one I see is Radiolib
P
Has anyone tried the mysensors protocol over PLC?
I am looking at using the KQ130/KQ330 150KHz AC power line UART modules to connect over distance without radio or special cables (RS485 etc)
https://www.youtube.com/watch?v=aGlL4eDwM-k
P
Im just looking for clarification on
RFM95_sendWithRetry
const uint32_t enterCSMAMS = hwMillis();
const uint16_t randDelayCSMA = enterMS % 100;
while (hwMillis() - enterCSMAMS < randDelayCSMA) {
doYield();
I think these parameters could have an effect on the RF traffic and Time-on-air right?
I would be keep to see the CSMA part explained or if its a particular type:
https://www.tutorialspoint.com/p-persistent-csma-protocol
P
@NeverDie
How did you get on with the Lora SX1262 modules?
I am looking at starting to build a gateway and node based on these.
Any tips would be greatly appreciated.
Tips for connecting the LoRa Radios:
Thanks for taking a look Mikeal,.
Here's my update:
I added a 47uF cap to the 3.3V input to the RA-01 Lora radios on both Node and Gateway, now the SF 12 long payload messages pass!
I tested various SF and BW and coding rates, I decided on the following for the "long-range mode". Typical use will be point-point mode, or gateway to 2 or 3 nodes max, no repeaters. Horizontal polarised yagi antennas.
MY_RFM95_FREQUENCY 433237500ul (its 1MHz away from my co-located standard mode gateway frequency and other local ISM users).
RFM95_MODEM_CONFIGRUATION RFM95_BW62_5CR45SF4096 (Typical time-on-air is around 4000ms.
MY_RFM95_ATC_MODE_DISABLED (to reduce traffic).
MY_RFM95_TX_POWER_DBM 23.
MY_RFM95_MAX_POWER_LEVEL_DBM 23u.
RFM95_RETRY_TIMEOUT_MS 3000ul.
MY_TRANSPORT_STATE_TIMEOUT_MS 6*1000ul.
Passive mode = off.
MY_REPEATER_FEATURE = off.
AGC_AUTO_ON
RX_PAYLOAD_CRC_ON
LOW_DATA_RATE_OPTIMIZE.
CAD = Default settings.
Encrypton = Off
Signing = Off
Sleep = Off.
Further test planned:
Cheers
P
Re: Any success story on LoRa(RFM95) module and MySensors?
I have been testing out the RA-02 433MHz Lora modules with the Mysensors implementation.
I setup a GPS node, reporting through the RFM95-MQTT gateway to Hassio.. All good it works well.
I hope to eventually run two Mysensors LoRa gateways, 1 local, high speed and with multiple nodes, and another, so-called long-range mode gateway for remote sensors or GPS tracking.
So I thought I would try some other Lora Phy settings in the hope to get better range between the mobile GPS node in my car and the gateway at home.
I am using BW 62.5KHz, CRC Coding 4/5, Spreading factor 2048CPS (SF11).
Messages can take up to 4 seconds long time on air.
I tried SF12 (4096CPS) and it doesn't completely work, for some reason some presentation messages fail (NACK) such as the internal presentation version message: (2.3.2).
I tried increasing the time-out setting, but It didnt really work, Im wondering is these long time-on-air messages are causing other time-out issues somewhere or perhaps certain payloads is causing issues.??
Other settings:
In Sketches:
#define MY_RFM95_ATC_MODE_DISABLED
In RFM95.h
RX_PAYLOAD_CRC_ON
RFM95_AGC_AUTO_ON
RFM95_LOW_DATA_RATE_OPTIMIZE
RFM95_RETRY_TIMEOUT_MS (3000ul)
In MyTransport.h
#define MY_TRANSPORT_STATE_TIMEOUT_MS (4*1000ul)
I would be very interested in your comments
P
MQTT Gateway Client - Last Will topic and feature.
It would be really nice if our controllers can know if the gateway disconnects.
I think this can be implemented in MyGatewayTransportMQTTClient.cpp
bool reconnectMQTT(void)
{
GATEWAY_DEBUG(PSTR("GWT:RMQ:CONNECTING...\n"));
// Attempt to connect
if (_MQTT_client.connect(MY_MQTT_CLIENT_ID, MY_MQTT_USER, MY_MQTT_PASSWORD))
433 MHz ESP 32 MQTT Gateway with proper antenna
A theroetcical capacity using RFM 95 LoRa radios in 433 MHz ISM band:
Lora Config bandwith: 125 KHz.
ISM band 433.050 - 434.790 MHz.
Allows for these 5 "channels";
Each GW can handle 254 RF Nodes
254 x 5 RF channels = 1270 sensor nodes in any one geographical location. (including repeated nodes)?
p
Thanks for your reply.
Is there a document which describes the tree radio network transport design in detail?
I have taken look at the API and the mysensors Radio page.
I am keen to know if this is an CSMA or Aloha system and how the network can respond to higher traffics loads, channel occupancy and collisions etc.
Its a great project, I really like that the LoRa Phy has been leveraged to this.
Cheers
Patrick
Im a noobie as of this week.
I have a Mysenors MQTT gateway on ESP32 with a AI Thinker RA-02 (433 MHz) Lora modulation radio.
Its working well so far, I'm interested to know if anyone has created a multi-node network covering , say a town using this protocol on LoRa or RFM69 Phyisical layer?
I am wondering if I setup an Mosquitto MQTT broker on a VM instance on Google Cloud, link my gateway to it and mount the thing on a high site with a decent co-linear antenna (I have a Ham Radio License). How big of a coverage area could I build?
Perhaps I make a mobile Node reporting GPS RSSI and drive around?
Solar-powered repeater nodes in the trees?
P