Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. cloolalang
    3. Posts
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Posts made by cloolalang

    • Low Power Solutions - minibrick and megabrick

      https://www.tindie.com/products/lps/lorawan-megabrick/

      Has anyone tried this hardware with mysensors?

      Cheers
      P

      posted in Hardware
      cloolalang
      cloolalang
    • RE: cc1310/ 802.15.4 stack uart-ready radio: E70-433NW14S

      @scalz
      Hi yes, thanks for your response.

      posted in Hardware
      cloolalang
      cloolalang
    • cc1310/ 802.15.4 stack uart-ready radio: E70-433NW14S

      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

      posted in Hardware
      cloolalang
      cloolalang
    • RE: Powerline Communications

      @cloolalang
      Update:

      1. KQ-330 F AC powerline "Modems" tested working with Mysensors RS485 serial gateway and node.
      2. Line Baud rate is 100b, (Half duplex), Needs AC (50/60Hz) to work.
      3. Presentation not working due to low speed, but I have entered my own mysensors.json in HA.
      4. Using a Master/slave strategy whereby the gateway is polling the node/children.
      5. Typical poll/response (req/send) is about 8 seconds. so yeah slow like not really more then 7 nodes/children per minute.
      6. Range, you must avoid interference from AC loads, try to use the same AC phase, I have mine working over 60m but I dont know if they are on the same AC phase, Power line modems are plugged directly into wall socket or light fitting (in my garage), no multiplugs, or switch mode PSUs nearby.
      7. Why? Just to see if it works.
      8. Long-term results will be posted.
        Cheers
        P
      posted in Hardware
      cloolalang
      cloolalang
    • RE: RS 485 very slow baud rates (100baud over half-duplex powerline) timing issues

      @cloolalang

      Other parameters not yet tested;

      1. sleep or wait between sketch information and presentation messages and/or in other functions
      2. MY_RS485_MAX_MESSAGE_LENGTH (40)
      3. #define MY_RS485_SOH_COUNT (3)
      4. MY_TRANSPORT_WAIT_READY_MS 0
      5. MY_TRANSPORT_STATE_TIMEOUT_MS 2*1000ul
      6. In mysensors core:
      // Wait configuration reply.
      	(void)wait(2000, C_INTERNAL, I_CONFIG);
      
      posted in Development
      cloolalang
      cloolalang
    • RS 485 very slow baud rates (100baud over half-duplex powerline) timing issues

      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?

      posted in Development
      cloolalang
      cloolalang
    • RE: Powerline Communications

      @cloolalang
      So I have two KQ-330 on the lab bench.
      So far we find:

      1. carrier 132.5khz FSK modulation.
      2. With two units connected together on 220 VAC mains - im seeing around 45-5- Baud, listening on an AM radio nearby the units it sounds like morse code at around 23WPM without mains, 30WPM with mains.
      3. Carrier is about 5v p-p on the scope, not very clean waveform.
      4. Uart is 9600 8n1
      5. Transmit buffer 253 Bytes

      I will test with mysensors RS485 gateway and sensor mode, with the transport time-outs increased to maybe 10000ms!
      p

      posted in Hardware
      cloolalang
      cloolalang
    • Ebyte Lora UART radios - 433 MHz, Can only use Channels 433.00 and 434.00!

      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

      posted in Hardware
      cloolalang
      cloolalang
    • Semtech SX1262 LoRa radios please!

      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

      posted in Feature Requests
      cloolalang
      cloolalang
    • Powerline Communications

      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

      posted in Hardware
      cloolalang
      cloolalang
    • RFM95_sendWithRetry. Is this P-persistent CSMA?

      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

      posted in Development
      cloolalang
      cloolalang
    • RE: Which are the preferred LoRa modules now?

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

      https://www.hoperf.com/modules/LoRaWAN/RFM6501W.html

      posted in General Discussion
      cloolalang
      cloolalang
    • RE: 💬 Connecting the Radio

      Tips for connecting the LoRa Radios:

      1. Use de-coupling capacitor on power supplies (as per above other radios).
      2. Carefully select: MY_RFM95_TX_POWER_DBM and MY_RFM95_MAX_POWER_LEVEL_DBM as Semtech spec states +20dBm output power is only for 1% duty cycle operations, and some modules (AI-Thinker RA-02) are only rated as +18dbm.
      3. If you build a LoRa radio gateway using an ESP32 (for example), take care to provide a separate, low-noise 3.3V power supply to the radio as the on-board voltage regulator may not be able to supply enough current at the higher RF output power levels.
      posted in Announcements
      cloolalang
      cloolalang
    • RE: LoRa/RFM95 - Testing long range PHY settings - Findings

      Thanks for taking a look Mikeal,.
      Here's my update:

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

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

      1. 866 MHz setup.
      2. TXCO setup narrow band modes to 7.6KHz
      3. Chain network topology with repeaters.
      4. Higher RF power (Ham radio license).

      Cheers
      P

      posted in General Discussion
      cloolalang
      cloolalang
    • LoRa/RFM95 - Testing long range PHY settings - Findings

      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

      posted in General Discussion
      cloolalang
      cloolalang
    • MQTT Gateway Client - Last Will topic and feature

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

      posted in Feature Requests
      cloolalang
      cloolalang
    • RE: What did you build today (Pictures) ?

      20200422_132110_resized.jpg

      433 MHz ESP 32 MQTT Gateway with proper antenna

      posted in General Discussion
      cloolalang
      cloolalang
    • RE: 💬 The Sensor Network

      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";

      1. 433.125
      2. 433.400
      3. 433.650
      4. not used (ISM noise from commercial devices on 433.920 etc)
      5. 434.150
        6 .434.400
        7 .not used (local ham repeater), (yes its nice to check!)

      Each GW can handle 254 RF Nodes
      254 x 5 RF channels = 1270 sensor nodes in any one geographical location. (including repeated nodes)?
      p

      posted in Announcements
      cloolalang
      cloolalang
    • RE: LPWAN based on Mysensors radio network using LoRa 433 MHz Phy - Range, etc

      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

      posted in General Discussion
      cloolalang
      cloolalang
    • LPWAN based on Mysensors radio network using LoRa 433 MHz Phy - Range, etc

      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

      posted in General Discussion
      cloolalang
      cloolalang